This is just baffling. As part of a software installation package, I have a series of C-Shell scripts. The main script calls the rest.
The issue I am having is that the main script isn't calling the embedded one. The call looks like this:
if (-e ${media}/bin/check_os) then
echo "${media}/bin/check_os exists. Calling check_os"
${media}/bin/check_os
echo "Outside check_os. Status is $(status)"
if ($status == 1) then
echo "check_os status = 1"
goto fatal-fixable-exit
The variable media is defined correctly and the echo before the call looks good. Then, inside the check_os script, I have an echo right after #!/bin/csh that never gets called, so the status variable never gets set.