I am new to C -Shell programming. I am writing a script that, if one or more arguments are entered after the script, it will display them. if no arguments are entered, it will say Please enter one or more arguments. For some reason, my script will do the first, but will not executive 0 argument task in the script. What am I doing wrong? Is it just a logical error? foreach arg ( $* )        if ( $#arg == 0 ) then                echo Please enter one or more arguments.        else if ( $#arg > 0 ) then                echo Found argument = $arg        endifend
C Shell Argument If Else Loop
csh