Re: the fedora csh and goto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

JD <jd1008@xxxxxxxxx> writes:

> On 08/21/2017 01:16 AM, 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
> This is what "Does Not Work" mean:
> Running your example:
> $ /tmp/test-csh-goto
> foo

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[21]: 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.

Good luck
hmw
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux