On 08/22/2017 05:27 PM, Michael Welle wrote: > Hello, > > just a short addition to my previous post. > > > JD <jd1008@xxxxxxxxx> 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. > I already told him the ! was missing from his file.....and he seems to have ignored that. Hope he listens better a second time. And, I confirmed that is the error you get with ksh as your running shell. With sh (bash) as your running shell you get a different message when you forget the !. [egreshko@meimei tmp]$ ./test-csh-goto ./test-csh-goto: line 2: label:: command not found foo./test-csh-goto: line 5: goto: command not found Good catch with ksh. I'd forgotten about that shell. :-) -- Fedora Users List - The place to go to speculate endlessly
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx