Open jesuscastor opened 5 years ago
The set -o command and history command should be called in the script to record and display the history. In the files on canvas under the Linux and git folder there is now a hw1_hist.sh script that will display the input you provided in the game to the console after you quit the game and through the game it will save that input in a local_hist.txt file.
Instructions
The more information/context you provide, the better we (the instructors and class) can collectively assist you.
Please fill out all of the relevant sections below. Incomplete questions will not be addressed by the instruction team.
Questions asked without showing an attempt to answer individually will also not be addressed.
It is bad etiquette to ask things such as "I don't know how to do this, can you tell me how?" or "I can't get this code to work, what is wrong?" if you do not provide the context and/or screenshots necessary to help.
Question (continued)
I am having issues recording the command history during the bash game. I could not call any commands during the game, and if I exit or finish the game the history command will not show the command input in the game. It will only show the command I used to start the game "bash hw1.sh".
I am leaning more towards finding a way to activate command tracking in interactive shell scripts but I am not sure if there is an easier way to approach this.
Paste your code in this code block (if needed)