Coder Social home page Coder Social logo

toysh's Introduction

toysh: Toy shell

- Licence: GPLv2  (using GNU readline)
- Author: saiya


=== Example ===

toysh % ls
core  makeAndRun.sh  parser.c  parser.h  toysh  toysh.c  toysh.h
toysh % ls -la
ๅˆ่จˆ 1284
drwxr-xr-x 3 saiya saiya    4096 2012-06-08 19:21 .
drwxr-xr-x 9 saiya saiya    4096 2012-06-08 14:22 ..
drwxr-xr-x 8 saiya saiya    4096 2012-06-08 19:20 .git
-rw------- 1 saiya saiya 2244608 2012-06-08 16:59 core
-rwxr-xr-x 1 saiya saiya     110 2012-06-08 17:58 makeAndRun.sh
-rw-r--r-- 1 saiya saiya    3325 2012-06-08 17:06 parser.c
-rw-r--r-- 1 saiya saiya     834 2012-06-08 17:16 parser.h
-rwxr-xr-x 1 saiya saiya   26876 2012-06-08 19:21 toysh
-rw-r--r-- 1 saiya saiya    2740 2012-06-08 19:19 toysh.c
-rw-r--r-- 1 saiya saiya     595 2012-06-08 18:01 toysh.h
toysh % ls -la | wc
     11      82     581
toysh % ls -l > tmp ; grep toysh < tmp
-rwxr-xr-x 1 saiya saiya    42284 2012-06-12 17:16 toysh
-rw-r--r-- 1 saiya saiya     4792 2012-06-12 17:04 toysh.c
-rw-r--r-- 1 saiya saiya      508 2012-06-12 16:58 toysh.h
-rw-r--r-- 1 saiya saiya    16128 2012-06-12 17:14 toysh.o
-rwxr-xr-x 1 saiya saiya    48513 2012-06-12 17:16 toysh_test
-rw-r--r-- 1 saiya saiya      262 2012-06-12 16:58 toysh_test.c
-rw-r--r-- 1 saiya saiya     3736 2012-06-12 17:14 toysh_test.o
toysh % 


=== Purpose ===

To pass the time.


=== Feature ===

- Command execution
- Quotation: 'one argument which contains space'
- Pipe: `ls | wc`
- All GNU readline features
-- Backlog (with up/down key)
-- Cursor operations (C-a, C-e etc.)

- Validated with Valgrind

toysh's People

Contributors

saiya avatar

Stargazers

horita-yuya avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.