env bug ?
Grant Cullen
jadall-Zd07PnzKK1IAvxtiuMwx3w at public.gmane.org
Mon Mar 7 23:39:43 UTC 2005
Peter L. Peres wrote:
>
> Hi all,
>
> I seem to have a problem with env: a file that starts with:
>
> #!/usr/bin/env echo foo
>
> and is set +x and executes, will print:
>
> /usr/bin/env: echo foo: No such file or directory
>
> huh?
>
> tia,
> Peter
>
> --
> The Toronto Linux Users Group. Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
I tried it and got the same result, but when I put perl instead of echo
foo. It worked. I am assuming that the command not found is echo (an
internal shell command) and therefore not in the path.
Grant Cullen
JADALL Consulting Ltd.
grant.cullen-yMeuRWKn1UT3fQ9qLvQP4Q at public.gmane.org
416-706-4447
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list