Coder Social home page Coder Social logo

tash's Introduction

TASH -- Thompson-Again SHell

TASH is a mini shell deprived from Unix V6SH which used to be refferred as to Thompson shell (http://en.wikipedia.org/wiki/Thompson_shell) which was written by Ken Thompson in 1971. I did some little things in ANSI C and ported it on modern Linux system. It is still regarded as a quite simple CLI interpreter but not yet for scripting.

The basic functions of this interpreter include command line, pipe, terminal reporting, I/O redirection and so on. More information is mentioned at on-line manual: http://v6shell.org/history/sh.1.html.

TASH currently contains only two source files: tash.c glob.c. You may make them into executable files at a time and install them on /usr/local/bin as for your user id as root.

You may have a quick start inputing command lines in three ways as follows:

Execute command with option '-c'

~/tash$ ./tash -c "ls *.c | grep glob"
glob.c

Execute shell file with option '-t'

~/tash$ ./tash -t test.sh
ls *.c | grep glob
glob.c

Execute shell file

~/tash$ cat test.sh
#!/usr/local/bin/tash
ls *.c | grep glob
~/tash$ chmod +x test.sh
~/tash$ ./test.sh
glob.c

The original source code and mannual of Unix V6SH was put on The Unix Heritage Society(TUHS). You may download them at http://minnie.tuhs.org/cgi-bin/utree.pl for free.

Any good suggestions are welcomed:^)

tash's People

Contributors

begeekmyfriend avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tash's Issues

Compound command not work accurately?

(ls|(grep g | wc -l))
mac built-in terminal output non-zero (depending on the num of files which file name contain letter 'g')
but tash always output zero 

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.