csh question
moss%brl-vld at sri-unix.UUCP
moss%brl-vld at sri-unix.UUCP
Sat Feb 25 06:18:20 AEST 1984
From: Gary S Moss ~Software Development Team~ <moss at brl-vld>
Jim --
My guess is that you are fooling yourself with indentation and
white space causing an ambiguity in syntax.
if($x == 1) then # Your code
set y=2
else
if($y == 2) then
echo "line 1"
else
echo "line 2"
endif
echo "shouldn't get here"
endif
-------------------------
if($x == 1) then # Equivalent
set y=2
else if($y == 2) then
echo "line 1"
else
echo "line 2"
endif
echo "shouldn't get here"
endif
-- Moss.
More information about the Comp.unix
mailing list