From owner-freebsd-doc Mon Jun 10 8:10:47 2002 Delivered-To: freebsd-doc@freebsd.org Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by hub.freebsd.org (Postfix) with SMTP id 6A47037B405 for ; Mon, 10 Jun 2002 08:10:37 -0700 (PDT) Received: (qmail 3078 invoked by uid 85); 10 Jun 2002 15:20:49 -0000 Received: from unknown (HELO straylight.ringlet.net) (212.116.140.125) by south.nanolink.com with SMTP; 10 Jun 2002 15:20:48 -0000 Received: (qmail 68944 invoked by uid 1000); 10 Jun 2002 15:09:40 -0000 Date: Mon, 10 Jun 2002 18:09:40 +0300 From: Peter Pentchev To: Chris Pepper Cc: Ross Lippert , bradyn@maths.tcd.ie, freebsd-docs@FreeBSD.ORG Subject: Re: docs/38985: time doesn't recognize its command-line options Message-ID: <20020610180940.C37176@straylight.oblivion.bg> References: <200206071616.JAA13829@eskimo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from pepper@reppep.com on Fri, Jun 07, 2002 at 02:19:20PM -0400 X-Virus-Scanned: by Nik's Monitoring Daemon (AMaViS perl-11d ) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jun 07, 2002 at 02:19:20PM -0400, Chris Pepper wrote: > At 9:16 AM -0700 2002/06/07, Ross Lippert wrote: > >HAHA!! not so fast there buddy. > > > >bash-2.05a$ which time > >/usr/bin/time > >bash-2.05a$ time date > >Fri Jun 7 12:11:08 EDT 2002 > > > >real 0m0.003s > >user 0m0.000s > >sys 0m0.001s > >bash-2.05a$ /usr/bin/time date > >Fri Jun 7 12:11:12 EDT 2002 > > 0.00 real 0.00 user 0.00 sys > >bash-2.05a$ which which > >/usr/bin/which > >bash-2.05a$ /usr/bin/which time > >/usr/bin/time >=20 > Ross, >=20 > I think you're getting tripped up by bash. csh provides its=20 > own 'smart' which command, which knows its own builtins. bash uses=20 > the system which, which doesn't know about shell builtins. For bash,=20 > use 'man builtin'. Or, for bash, use the 'type' builtin: [roam@straylight:p4 ~]$ echo $BASH_VERSION 2.05a.0(1)-release [roam@straylight:p4 ~]$ which time /usr/bin/time [roam@straylight:p4 ~]$ type time time is a shell keyword [roam@straylight:p4 ~]$ type which which is hashed (/usr/bin/which) [roam@straylight:p4 ~]$ type /usr/bin/time /usr/bin/time is /usr/bin/time [roam@straylight:p4 ~]$ G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This inert sentence is my body, but my soul is alive, dancing in the sparks= of your brain. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message