######## Testing basic command execution ######## --------------------------------------------------- sh.c /bin/grep fprintf(stderr, "cs111_spring05$ "); // error, preceded by 'cs111_spring05: '. perror("cs111_spring05: "); ------------------------------------------------- ######## Testing redirection ######## --------------------------------------- hello ls: no_file.txt: No such file or directory ------------------------------------------------- ######## Testing pipes ######## --------------------------------- cmdline.c cmdline.h cmdline.o cmdline.c cmdline.h cmdline.o cmdline.c cmdline.h cmdline.o ------------------------------------------------- ######## Testing sequential execution ######## ------------------------------------------------ /bin/grep sh.c hello /bin/grep sh.c /bin/grep sh.c ------------------------------------------------- ######## Testing background ######## -------------------------------------- foo bar bar foo ------------------------------------------------- ######## Testing conditional execution ######## ------------------------------------------------- /bin/grep sh.c Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. sh.c ------------------------------------------------------ ######## Testing file name matching ######## ------------------------------------------------- cmdline.c cmdline.c ------------------------------------------------------ ######## Testing parenthesis ######## --------------------------------------- /bin/grep sh.c ------------------------------------------------------ ######## Testing cd ######## ------------------------------ / ------------------------------------------------------ ######## EXIT ########