[Bug 1141989] Re: Env fails on command line arguments
Brian Beck
brian.beck at dxrgroup.com
Tue Aug 27 22:00:55 UTC 2013
This is an important issue. It make applications less portable, and
makes it more difficult to get applications running on a Linux server.
For example, I have a fairly large Perl application that I would like to
port from Macintosh OS X to Ubuntu Server. Each script begins with:
#!/usr/bin/env perl -w
So on Ubuntu, I get: /usr/bin/env: perl -w: No such file or directory
Package: coreutils
Essential: yes
Status: install ok installed
Priority: required
Section: utils
Installed-Size: 5920
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Version: 8.20-3ubuntu5
Replaces: mktemp, timeout
Depends: dpkg (>= 1.15.4) | install-info
Pre-Depends: libacl1 (>= 2.2.51-8), libattr1 (>= 1:2.4.46-8), libc6 (>= 2.15), libselinux1 (>= 1.32)
Conflicts: timeout
Let me know if there's anything I can do to help out.
Cheers,
Brian
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1141989
Title:
Env fails on command line arguments
Status in “coreutils” package in Ubuntu:
Confirmed
Bug description:
This simple script works fine with env:
#!/usr/bin/env python3
print('Works')
However if you add a command line argument to the Python 3 executable
it fails:
#!/usr/bin/env python3 -tt
print('Does not work.')
The error message printed is this:
/usr/bin/env: python3 -tt: No such file or directory
This exact same piece of code does work on OSX. It should work on
Linux too, as the man page says that you can pass arguments to the
command:
SYNOPSIS
env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: coreutils 8.13-3.2ubuntu2.1
ProcVersionSignature: Ubuntu 3.5.0-25.39-generic 3.5.7.4
Uname: Linux 3.5.0-25-generic i686
ApportVersion: 2.6.1-0ubuntu10
Architecture: i386
Date: Sun Mar 3 13:50:47 2013
InstallationDate: Installed on 2012-09-01 (182 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: coreutils
UpgradeStatus: Upgraded to quantal on 2012-10-24 (129 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1141989/+subscriptions
More information about the foundations-bugs
mailing list