time: Time does not parse its parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnu Bash |
Fix Released
|
Unknown
|
|||
bash (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
time (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: time
This is a cut and paste from a bug reported on the debian bug tracking system. since this bug hasn't been fixed in about one year and is also present in ubuntu, I am reporting it here. Maybe someone here will know how to fix it.
From: Martin Jambor <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: time: Time does not parse its parameters
Date: Wed, 20 Sep 2006 16:21:02 +0200
Package: time
Version: 1.7-21
Severity: important
Time does not parse its own parameters and treats everything on the
command line like the program it should run and its parameters.
For example the following works:
jamborm@
real 0m0.005s
user 0m0.000s
sys 0m0.004s
But this does not:
jamborm@cetus:~/tmp time -f "%e" bash < /dev/null
bash: -f: command not found
real 0m0.002s
user 0m0.000s
sys 0m0.000s
OTOH, I suspect this might be a bash issue because I have just found
out that /usr/bin/time works as expected.
TIA
Martin
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.14mj01
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Versions of packages time depends on:
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
time recommends no packages.
-- no debconf information
Changed in gnubash: | |
status: | Unknown → New |
Changed in gnubash: | |
status: | New → Fix Released |
You can read the debian bug report page for details. But a simple workaround is to use the command "/usr/bin/time" instead of just "time". If it is not corrected, it would at least be nice to mention this in the man page.