Skip to content

cs-muic/project-1-ic-shell-mmmudmi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date Review Assignment Due Date Open in Visual Studio Code

ICSH

Tag 0.1.0 Interactive command-line interpreter

  • echo : print text on the console
  • !! : repeat the last command
  • exit : exit with the given exit code

Tag 0.2.0 Script mode

  • ./icsh test.sh : return the input command content in the test.sh (in the current directory) to the console

Tag 0.3.0 Running an external program in the foreground

  • run the command that already exist in SHELL

Tag 0.4.0 Signal Handler

  • Ctrl+Z : to suspend the process in the current foreground (not your shell)
  • Ctrl+C : to kill the process in the current foreground (not your shell)
  • echo $? : to print the exit status code of the previous command. You may assume that all build-in commands exits with exit code 0

Tag 0.5.0 I/O redirection

  • reDir() : <Input/ >Output Redirection

Tag 0.6.0 Background jobs and job control

  • command followed by "&" : will run as a background job
    • listed in the jobList[100] with 100 jobs limit
  • jobs : this command will list all the current jobs that are running/stopped
  • fg %<job_id> : Brings the job identified by <job_id> into the foreground
    • does not continue, but start from the beginning
  • bg %<job_id> : Execute the suspended job identified by <job_id> in the background
    • does not continue, but start from the beginning, run in fg instead

Tag 0.7.0 Extra features

  • Allowing users to customize their prompt at the beginning of the program
    • Can type the prompt text
    • Choose a font color (pink/red/green/yellow/blue/white)
    • Choose styles (bold,underline)
    • Or choose the default version "icsh $ "
  • help() : this command return the instructions of this IC SHELL
  • !!!! : repeat the second last command

About

project-1-ic-shell-mmmudmi created by GitHub Classroom

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages