Skip to content
Micro Shell (ush) in C
C Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
.cproject
.project
Makefile
README.md
README~
builtin.c
builtin.h
parse.c
parse.h
ush.c

README.md

#README for ush parser and Micro shell (ush).

Vincent W. Freeh

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.

Dinesh Prasanth M K

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 (|, |&)

Running

	make
	./ush
	{yourhost}% [start typing commands]
You can’t perform that action at this time.