Bash is not exiting the while loop.
Maybe I'm having a bad day, or maybe this is another reason for why I hate writing bash.
Code:
#!/bin/bash EDIT: D'OH! I am reading a null variable. |
Greetings,
Well, I would say that the issue with this code has nothing to do with which scripting language you used... You would likely still have an issue for the small error (probably typo) that is there whether it was written in BASH, csh, ksh or python... So, you were probably just having a bad day. On line 20, I would recommend changing "read choice" to "read xchoice" so you are actually taking the input to the variable you are checking against in the case switch. HTH your day get better. Let us know. |
All times are GMT -5. The time now is 12:19 AM. |