Tell us what’s happening:
Hi I am stuck at the countdown.sh which the instruction asks me to use arg1
as the only argument. On the first attempt, I tried arg1. It returned “true”, but did not pass the test. So I tried to copy the answer from the hint using “!arg1”. It returned “bash: !arg1: event not found” and also did not pass the test.
May I please know
- How to pass the test even if I copy and paste the answer but it did not pass
- what is the meaning of the ! sign here? If it means flipping the true/false value of the arg1, why it has to be there and it was not mentioned to do so in the instructions?
Your code so far
camper: /project$ ./countdown.sh arg1
true
camper: /project$ ./countdown.sh !arg1
bash: !arg1: event not found
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Challenge Information:
Learn Bash Scripting by Building Five Programs - Build Five Programs