GNU bug report logs -
#21672
env is not splitting command and argument as suggested by the synopsis
Previous Next
Reported by: Esli <esli.kulisek <at> gmail.com>
Date: Mon, 12 Oct 2015 15:29:01 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Mon, 12 Oct 2015 10:48:55 +0200, Esli <esli.kulisek <at> gmail.com> wrote:
> Hello,
>
>
>
> env is not splitting command and argument as suggested by the synopsis:
>
> SYNOPSIS
>
> env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
>
>
>
> Example:
>
> #!/usr/bin/env perl -w
>
> produces:
>
> /usr/bin/env: perl -w: No such file or directory
>
>
>
> Apparently, env is looking for command "perl -w", not for command "perl"
> and than passing him "-w"
This is due to how the shebang works under Linux, nothing to do with env,
see this page for all the details:
http://www.in-ulm.de/~mascheck/various/shebang/
--
D.
This bug report was last modified 9 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.