Operation System Course Design, BUAA
By: Hao Tong
This program give a command prompt with format "xsh@current_path>", such as "xsh@/home/tong/shell>", indicating that it is waiting for the user to input commands. After input, it will execute the command and output necessary information if the commands are correct, and then wait for the next command. Otherwise, it will print error information.
Kill all sub processes and exit.
Print jobs that are running in back end or suspended. The print format is INDEX PID STATE COMMAND jobs is a internal command, it won't be printed on the screen.
List the most recent HISTORY_LEN commands.
Put a process identified with <int> in front end. The shell shouldn't print new information until this command ends.
Put a suspended process to the back end and run.