Skip to content
/ psh Public

A minimalist command line interpreter in Python

License

Notifications You must be signed in to change notification settings

civp/psh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyShell

Command line interpreter implemented in Python.

Supported commands

Built-in commands

  • bg
  • cd [dir]
  • pwd
  • time command
  • clr
  • dir [dir]
  • environ
  • echo [comment]
  • help
  • quit
  • fg
  • jobs
  • set var val
  • shift
  • test
  • umask [mask]
  • unset var

Use help for more detail.

Program execution from the shell is supported without doubt.

Features

Redirection (works only for built-in commands)

echo hello > hello.txt

Pipeline

cat shell.py | wc

Background execution

sleep 10 & sleep 5 &

Batchfile

python shell.py BATCHFILE

About

A minimalist command line interpreter in Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages