#README for ush parser and Micro shell (ush).
This a parser for a csh-like syntax. It is to be used for the ush shell project.
There are five files:
. README this file . Makefile . main.c driver program that reads and prints commands . parse.c define parsing function and other support functions . parse.h
To use in your program, you must include parse.h and call the function parse(), which return a Pipe data structure. (See main.c) The Pipe contains all the information in a line of input to a shell.
This Micro shell (ush) has following built-in commands:
- cd
- where
- echo
- nice
- logout
- pwd
- setenv
- unsetenv
supports:
- redirection (>, >&, >>, >>&)
- supports multi pipe commands including stderr redirect (|, |&)
make
./ush
{yourhost}% [start typing commands]