Skip to content

evaporei/snowshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

snowshell

Simple shell for CS class.

You may ask, what does it do? It's a REPL that can run subprocesses and it handles a few "edge case" scenarios (SIGINT/Ctrl + C, etc).

Examples

Running a subprocess

⛄️ whoami
rei
⛄️ echo hello
hello

Gracefully handling commands not found

⛄️ a
🌲⛷  a: command not found
⛄️ b
🌲⛷  b: command not found

Builtins

It currently implements cd and exit.

⛄️ pwd
/home/rei/snowshell
⛄️ cd ..
⛄️ pwd
/home/rei
⛄️ exit 1

Signals

Ctrl + C does nothing on the parent process (shell).

⛄️ ^C

Ctrl + D stops the shell altogether.

⛄️ ^D
❄❅❄❅ Goodbye and stay warm! ❄❅❄❅

Ctrl + C terminates child process.

⛄️ sleep 10
^C
⛄️

About

⛄ simple shell for CS class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published