[Bug 913292] [NEW] 'time' ignores arguments (such as '-f') and discards them as commands
Sebastian Lai
913292 at bugs.launchpad.net
Sat Jan 7 23:07:34 UTC 2012
Public bug reported:
As defined in the manpage of 'time' (see
http://manpages.ubuntu.com/manpages/natty/man1/time.1.html), the 'time'
command should understand the following command:
time -f "%E real,%U user,%S sys" ls -Fs
However, it seems to ignore the '-f' argument:
$ time -f "%E real,%U user,%S sys" ls -Fs
-f: command not found
real 0m3.423s
user 0m0.232s
sys 0m0.188s
That could be considered undefined behaviour, for example, when shell
scripts depend on the '-f' flag (or other flags, for that matter).
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: time 1.7-23.1
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Jan 7 23:11:37 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: time
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: coreutils (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug oneiric
--
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/913292
Title:
'time' ignores arguments (such as '-f') and discards them as commands
Status in “coreutils” package in Ubuntu:
New
Bug description:
As defined in the manpage of 'time' (see
http://manpages.ubuntu.com/manpages/natty/man1/time.1.html), the
'time' command should understand the following command:
time -f "%E real,%U user,%S sys" ls -Fs
However, it seems to ignore the '-f' argument:
$ time -f "%E real,%U user,%S sys" ls -Fs
-f: command not found
real 0m3.423s
user 0m0.232s
sys 0m0.188s
That could be considered undefined behaviour, for example, when shell
scripts depend on the '-f' flag (or other flags, for that matter).
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: time 1.7-23.1
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Jan 7 23:11:37 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: time
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/913292/+subscriptions
More information about the foundations-bugs
mailing list