Doesn't let me pass options to time

Bug #147086 reported by Kyle Kienapfel
4
Affects Status Importance Assigned to Milestone
command-not-found
Invalid
Undecided
Unassigned
bash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

time --format 'Time: %Es' program doesn't work as desired, command-not-found gets in the way.

Tested on Feisty.

mage@prometheus:~/Work$ time --format '%Es' yadda
Usage: command-not-found [options] <command-name>

command-not-found: error: no such option: --format
bash: --format: command not found

real 0m0.124s
user 0m0.096s
sys 0m0.016s

mage@prometheus:~/Work$ dash
$ time --help
Usage: time [-apvV] [-f format] [-o file] [--append] [--verbose]
       [--portability] [--format=format] [--output=file] [--version]
       [--quiet] [--help] command [arg...]
$ exit

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is a bug in feisty's version of bash that invokes command-not-found incorrectly. Please check /etc/bash.bashrc and notice the lack of '--' before the argument to c-n-f

Revision history for this message
Matthias Klose (doko) wrote :

fixed in gutsy

Changed in bash:
status: New → Fix Released
Changed in command-not-found:
status: New → Invalid
Revision history for this message
Moin (mondog) wrote :

I have the same bug on Jaunty now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.