Hello,
just a short addition to my previous post.
JD <jd1008(a)gmail.com> writes:
I ran your the script used by Michael Welle, but changes
#!/bin/csh
to
#!/bin/tcsh
and it displayes the same problem:
Cat /tmp/test-csh-goto
#/bin/tcsh
^^^^^^^^^^^^ this wrong shebang line gives you...
label:
printf "foo"
sleep 1
goto label
$ /tmp/test-csh-goto
foo
/tmp/test-csh-goto[6]: goto: not found [No such file or directory]
...this error
message if you current shell is ksh for instance.
Regards
hmw