Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2005 04:17:40 -0500
From:      Parv <parv@pair.com>
To:        "P. B. S." <avenger@vip.bg>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: time -l date   ==> bash: -l: command not found        Bug?
Message-ID:  <20050225091740.GA10592@holestein.holy.cow>
In-Reply-To: <20050225020659.GA75395@xor.obsecurity.org>
References:  <002001c51add$d515d6c0$3564015a@apise6e37e23bb> <20050225020659.GA75395@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20050225020659.GA75395@xor.obsecurity.org>,
wrote Kris Kennaway thusly...
>
> On Fri, Feb 25, 2005 at 04:00:49AM +0200, P. B. S. wrote:

PBS, Do wrap lines around 69 or so characters to give me no
incentive to ignore your mail otherwise.

> > "time" doesn't seem to accept any options. The first thing on
> > the line after "time" is taken as the utility to execute. I need
> > the -l option.  Am I misusing "time" or what?
>
> Your shell (apparently bash) provides a builtin time function.  If
> you want to use FreeBSD's time(1) binary, call it by absolute path
> (/usr/bin/time)

Look also in bash(1) man page which states somewhere to use '\' in
order to use the real command (as it appears in $PATH of course) and
avoid built-in/alias.


  - Parv

-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050225091740.GA10592>