Env fails on command line arguments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
New
|
Low
|
Unassigned |
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
ProcVersionSign
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_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: coreutils
UpgradeStatus: Upgraded to quantal on 2012-10-24 (129 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.