GNU bug report logs - #21672
env is not splitting command and argument as suggested by the synopsis

Previous Next

Package: coreutils;

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

From: Esli <esli.kulisek <at> gmail.com>
To: 21672 <at> debbugs.gnu.org
Subject: bug#21672: env is not splitting command and argument as suggested by the synopsis
Date: Mon, 12 Oct 2015 10:48:55 +0200
[Message part 1 (text/plain, inline)]
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"

 

Regards

   Petr

[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.