[Bug 913292] Re: 'time' ignores arguments (such as '-f') and discards them as commands

Dave Gilbert ubuntu at treblig.org
Sun Jan 8 00:08:22 UTC 2012


You've fallen into an old-trap; bash (and many other shells) have 'time' builtins, and it's that time that you are running
rather than the one from coreutils ; if you replace your command with  /usr/bin/time rather than just time it works.

To see the syntax of the time builtin, if you are in bash do    help
time.

** Changed in: coreutils (Ubuntu)
       Status: New => Invalid

-- 
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:
  Invalid

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