I found some kind of undocumented bug while using the test construct in
Csh to test for the length of a string.
if (-n "<string>" ) then
At the cshell prompt, using "if (-n "xxx") then...... always gives
a "badly formed number" error and fails. However using the
contrasting construct, "-z", to test for the emptiness of a string
if (-z "<string>") then
From the cshell prompt, "if (-z "xxx") then.... gives an if-shell
prompt , "if? ".
However, still, the command "test" still works fine with the -n option.
Anyone use the if (-n ....) construct??
Thanks in advance for any response.