bug-coreutils
[Top][All Lists]
Advanced

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

bug#21672: env is not splitting command and argument as suggested by the


From: Davide Brini
Subject: bug#21672: env is not splitting command and argument as suggested by the synopsis
Date: Mon, 12 Oct 2015 17:35:56 +0200

On Mon, 12 Oct 2015 10:48:55 +0200, Esli <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]