On 08/21/2017 02:02 AM, Joachim Backes wrote:
On 08/21/17 09:16, Michael Welle wrote:
Hallo,
JD <jd1008@xxxxxxxxx> writes:
The manpage for the fedora csh describes the usage of goto,
but it does not work.
Anyone with insight on this?
If you CAN make it work, please provide
a skeleton of the script where the label
is visible and the goto statement is visible :)
what does 'does not work' mean? What have you tried so far? It's
straight forward, I think.
#!/bin/csh
label:
printf "foo"
sleep 1
goto label
Regards
hmw
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Runs on my box (x86_64, with tcsh-6.20.00-5.fc26)
Kind regards
Joachim Backes
Hi Joachim
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
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]
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx