On Mon, 2017-08-21 at 15:30 -0600, JD wrote:
On 08/21/2017 01:16 AM, Michael Welle wrote:
> Hallo,
>
> 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.
>
> #!/bin/csh
>
> label:
> printf "foo"
> sleep 1
> goto label
>
> Regards
> hmw
This is what "Does Not Work" mean:
Running your example:
$ /tmp/test-csh-goto
foo
/tmp/test-csh-goto[21]: goto: not found [No such file or directory]
What does "which goto" say?
poc