Re: the fedora csh and goto

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

 



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
[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