FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-10-2012, 09:22 PM
David Christensen
 
Default Debian 6.0.4 i386 /usr/bin/time command line arguments broken?

debian-user:

I was attempting to use the "time" command to do some benchmarking
today, and it seems that command line arguments are broken (see console
session, below).



Any suggestions?


TIA,

David



2012-03-10 14:16:12 dpchrist@p43400e ~
$ time

real 0m0.000s
user 0m0.000s
sys 0m0.000s

2012-03-10 14:16:17 dpchrist@p43400e ~
$ time -o foo.out echo 'foo'
-bash: -o: command not found

real 0m0.001s
user 0m0.000s
sys 0m0.000s

2012-03-10 14:16:19 dpchrist@p43400e ~
$ time --help
-bash: --help: command not found

real 0m0.001s
user 0m0.000s
sys 0m0.000s

2012-03-10 14:16:22 dpchrist@p43400e ~
$ cat /etc/debian_version
6.0.4

2012-03-10 14:16:30 dpchrist@p43400e ~
$ uname -a
Linux p43400e 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686
GNU/Linux


2012-03-10 14:19:01 dpchrist@p43400e ~
$ set | grep TIME


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4F5BD417.6050809@holgerdanske.com">http://lists.debian.org/4F5BD417.6050809@holgerdanske.com
 
Old 03-10-2012, 11:00 PM
"Selim T. Erdogan"
 
Default Debian 6.0.4 i386 /usr/bin/time command line arguments broken?

David Christensen, 10.03.2012:
> debian-user:
>
> I was attempting to use the "time" command to do some benchmarking
> today, and it seems that command line arguments are broken (see
> console session, below).
>
>
> Any suggestions?

This came up on the list very recently. There's a bash reserved word
"time" so you need to give the full path for the program time.

$ /usr/bin/time --help
Usage: /usr/bin/time [-apvV] [-f format] [-o file] [--append] [--verbose]
[--portability] [--format=format] [--output=file] [--version]
[--quiet] [--help] command [arg...]


> TIA,
>
> David
>
>
>
> 2012-03-10 14:16:12 dpchrist@p43400e ~
> $ time
>
> real 0m0.000s
> user 0m0.000s
> sys 0m0.000s
>
> 2012-03-10 14:16:17 dpchrist@p43400e ~
> $ time -o foo.out echo 'foo'
> -bash: -o: command not found
>
> real 0m0.001s
> user 0m0.000s
> sys 0m0.000s
>
> 2012-03-10 14:16:19 dpchrist@p43400e ~
> $ time --help
> -bash: --help: command not found
>
> real 0m0.001s
> user 0m0.000s
> sys 0m0.000s
>
> 2012-03-10 14:16:22 dpchrist@p43400e ~
> $ cat /etc/debian_version
> 6.0.4
>
> 2012-03-10 14:16:30 dpchrist@p43400e ~
> $ uname -a
> Linux p43400e 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686
> GNU/Linux
>
> 2012-03-10 14:19:01 dpchrist@p43400e ~
> $ set | grep TIME


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120311000037.GB28937@cs.utexas.edu">http://lists.debian.org/20120311000037.GB28937@cs.utexas.edu
 
Old 03-11-2012, 05:27 AM
David Christensen
 
Default Debian 6.0.4 i386 /usr/bin/time command line arguments broken?

On 03/10/2012 04:00 PM, Selim T. Erdogan wrote:

This came up on the list very recently. There's a bash reserved word
"time" so you need to give the full path for the program time.


Thanks for the explanation. :-)


I've filed a bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663421


David


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4F5C45DC.6080405@holgerdanske.com">http://lists.debian.org/4F5C45DC.6080405@holgerdanske.com
 
Old 03-11-2012, 01:58 PM
Camaleón
 
Default Debian 6.0.4 i386 /usr/bin/time command line arguments broken?

On Sat, 10 Mar 2012 18:00:37 -0600, Selim T. Erdogan wrote:

> David Christensen, 10.03.2012:
>> debian-user:
>>
>> I was attempting to use the "time" command to do some benchmarking
>> today, and it seems that command line arguments are broken (see console
>> session, below).
>>
>>
>> Any suggestions?
>
> This came up on the list very recently. There's a bash reserved word
> "time" so you need to give the full path for the program time.
>
> $ /usr/bin/time --help
> Usage: /usr/bin/time [-apvV] [-f format] [-o file] [--append]
> [--verbose]
> [--portability] [--format=format] [--output=file] [--version]
> [--quiet] [--help] command [arg...]

Escaping the command seems to do the same trick:

sm01@stt008:~$ ime --help
Usage: time [-apvV] [-f format] [-o file] [--append] [--verbose]
[--portability] [--format=format] [--output=file] [--version]
[--quiet] [--help] command [arg...]

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jjiej1$jrs$5@dough.gmane.org">http://lists.debian.org/jjiej1$jrs$5@dough.gmane.org
 

Thread Tools




All times are GMT. The time now is 09:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org