+The shell script in the _finalShell.c_ file also supports a history feature. By entering 'r' (a single char input), the user will be able to re-execute the last command he/she entered into the the shell script. In addition, by entering 'r' x (where r is the single char input followed by any other single char input represented as x), the user will re-execute the latest command with x as its first letter. Thirdly, the history feature only stores the history of the latest 10 commands entered by the user. The user can view the list of historical commands with a signal input of <control><c>. This means that the user cannot exit the program with <control><c>. To exit the program, the user must enter the text, "exit".
0 commit comments