JD <jd1008(a)gmail.com> writes:
On 08/21/2017 01:16 AM, Michael Welle wrote:
> JD <jd1008(a)gmail.com> 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.
> printf "foo"
> sleep 1
> goto label
This is what "Does Not Work" mean:
Running your example:
well, you seem to be an experienced user, so I might be wrong and I
apologize in advance. This error message:
/tmp/test-csh-goto: goto: not found [No such file or directory]
it looks like an error message thrown by ksh and not by csh. So if you
had run my script with the shebang line #!/bin/csh you might want to
check if /bin/csh is really a csh on your system.