What is the case where this works:
if ("x$x" == "xyes') then
...
endif
but this just produces a syntax error?
if ($x == "yes") then
...
endif
I know I've run into the second one breaking before, when x is blank or a newline or something like that... but I can't reproduce it. The cases where I ran into it were in a complex maze of nested csh scripts; I haven't had much luck creating a small example to show the danger of the second form.
if ("x$x" == "xyes') then
...
endif
but this just produces a syntax error?
if ($x == "yes") then
...
endif
I know I've run into the second one breaking before, when x is blank or a newline or something like that... but I can't reproduce it. The cases where I ran into it were in a complex maze of nested csh scripts; I haven't had much luck creating a small example to show the danger of the second form.