MLUG: Re: [MLUG] Passing options to the time command
Re: [MLUG] Passing options to the time command
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Nowlin, Dan wrote:
-----Original Message-----


You have got to be careful with commands like "time."  You think you
are
running something like the /usr/bin/time program, but you might be
running an internal shell command.  This is certain ly true if you are
using the csh or tcsh shell.  What does "which time" tell you?

But also, on my (admittedly FreeBSD) system, "man time" doesn't
    
mention
  
a -V option.  The same is also true on bengal.missouri.edu, which I
think is a Linux system.  So maybe the man page is messed up.


    
Not true.  I am looking at the man page for time on bengal.missouri.edu
(Red Hat) and it does have the -V option.  So does my FC4 box.  I think
it might be a bug in the time command because it does not take any
options.
  

Right, but observe:


[EMAIL:PROTECTED ~]$ /usr/bin/time -V
GNU time 1.7

[EMAIL:PROTECTED ~]$ time -V
-V: Command not found.
0.000u 0.000s 0:00.00 0.0%      0+0k 0+0io 0pf+0w

If you don't supply the full path, bash will use its built-in version of the command, which is less featureful (or doesn't support the -V flag, in any case).

Adam
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members