This is a C shell script that checks the number of arguments and if the file/directory exists. When the arguments are valid, it should go to the last else statement and print hi, but when I run this script with the correct arguments it doesn't print anything. (but the exit status is 0)Everything else works fine when I have invalid arguments.if ($#argv != 2) then        echo Two arguments requiredelse        if (! -f $argv[1]) then                echo File does not exist                exit 1        else                if (! -d $argv[2]) then                        echo Not a valid directory                        exit 2                endif        endifelse            echo hiendifMaybe it's my syntax that is wrong? Any ideas?
Script in C shell skipping over last else statement?
shell script;debugging;csh