Originally Posted by coffeeaddict19
if [ $NUMOFARGS="0" ]
You're mixing up numbers and strings. Bash treats them differently. Read up on the test command (man test
What you want is something like this:
if [ $NUMOFARGS -eq 0 ]
Oh well, I'm late to the party, but I'm not letting my typing go to waste...