From owner-freebsd-doc Fri Jun 7 9:16:37 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.eskimo.com (mx1.eskimo.com [204.122.16.48]) by hub.freebsd.org (Postfix) with ESMTP id 4A3AF37B404 for ; Fri, 7 Jun 2002 09:16:30 -0700 (PDT) Received: from eskimo.com (ripper@eskimo.com [204.122.16.13]) by mx1.eskimo.com (8.9.1a/8.8.8) with ESMTP id JAA14844; Fri, 7 Jun 2002 09:16:15 -0700 Received: (from ripper@localhost) by eskimo.com (8.9.1a/8.9.1) id JAA13829; Fri, 7 Jun 2002 09:16:14 -0700 (PDT) Date: Fri, 7 Jun 2002 09:16:14 -0700 (PDT) Message-Id: <200206071616.JAA13829@eskimo.com> From: Ross Lippert To: bradyn@maths.tcd.ie Cc: pepper@rockefeller.edu, freebsd-docs@FreeBSD.ORG In-reply-to: <200206071702.aa68738@salmon.maths.tcd.ie> (message from Niall Brady on Fri, 07 Jun 2002 17:02:32 +0100) Subject: Re: docs/38985: time doesn't recognize its command-line options 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 >Sounds like you're using the shell built-in version of time... >try doing > which time >to see which one you're using. /usr/bin/time supports the flags >you mentioned! 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 I get burned by this too. What is the RIGHT way to: 1) know if a particular function is being done by the shell or not 2) get a list of all commands the shell is doing for you which are also are the names of exectuables in your current PATH. -r To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message