SCRIBE: Muneenaem Songkrant Sketch out the features of program "xssh2" project features possible solutions 1. xssh2 [-x] while ( there is a command ) { word[ ] = parse( ); xword[ ] = substitute( ); if ("-x") display xword[ ]; --- some codes here --- ( to evaluate command ) } 2. ( to evaluate command built-in?) if (buitin) evaluate built-in command else evaluate NON-built-in command 3. evaluate NON-built-in command Do it first becasue we have code! 4. evaluate built-in command For each built-in command: Use simple "case" statement for each command also look how to use [strcmp] For example of some built-in commands: 5. echo W1 W2 ... Use same substitute( ) function from 1. or we may use the code from homework1 6. quit W (with exit status of W) use [exit] to quit this xssh2 shell ??? how to dealt with any bg jobs ??? ??? how to clean it up ??? 7. quit (from previous command) return the status of the latest executed command ??? Need to record the command history/status ??? ??? can we use $? variable ??? 8. Discuss more with your classmates...and have fun...