Quote:
Originally Posted by coffeeaddict19
Code:
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:
Code:
if [ $NUMOFARGS -eq 0 ]
Oh well, I'm late to the party, but I'm not letting my typing go to waste...