Skip to content

A command interpreter for a Korn shell-like command running under Unix

Notifications You must be signed in to change notification settings

syuChen1/THE-NUTSHELL

Repository files navigation

THE NUTSHELL

A command interpreter for a Korn shell-like command language written in C/C++ using Lex and Yacc running under Unix. The Nutshell will parse command lines and execute the appropriate command(s). The core of the shell consists of shell commands, pipes, environment variables, aliases, pathname searching, tilde expansion and wild-carding.

to run the program:

make
./nutshell

image

List of build-in command word:

setenv variable word 
printenv
unsetenv variable
cd word
alias name word
unalias name
alias
bye

Non-build-in command:

The Nutshell will check (search for) the directories on the path 
that is the value of the environment variable PATH for the command. 
The command will be run only if the file exists and is executable.

Other features:

| for pipe
? for matching single character
* for matching a string of characters
~ for current user home path expansion
~/user for selected "user" home path expansion 

About

A command interpreter for a Korn shell-like command running under Unix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published