env bug ?
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Mar 8 16:21:27 UTC 2005
On Tue, Mar 08, 2005 at 01:13:14AM +0200, Peter L. Peres wrote:
> 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
Do you have /bin/echo or do you only have the shell built in echo (bash
has echo built in so it doesn't use /bin/echo normally, while env does
use the real program from the PATH).
Quite likely you do not have an echo _command_ at all then.
/usr/bin/env echo foo, does work here.
Lennart Sorensen
--
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