Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2002 08:15:39 -0700 (PDT)
From:      Chris Pepper <pepper@rockefeller.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/38985: time doesn't recognize its command-line options
Message-ID:  <200206071515.g57FFdDC014395@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38985
>Category:       docs
>Synopsis:       time doesn't recognize its command-line options
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 07 08:20:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Pepper
>Release:        4.6RC
>Organization:
>Environment:
FreeBSD guest.reppep.com 4.6-RC FreeBSD 4.6-RC #0: Fri May 31 22:33:23 EDT 2002     root@guest.reppep.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
time's man page says it provides various flags, including -h (human-readable) and -p (POSIX-style), but these flags generate errors when used.

guest# man time
TIME(1)                 FreeBSD General Commands Manual                TIME(1)

NAME
     time - time command execution

SYNOPSIS
     time [-al] [-h | -p] [-o file] command

DESCRIPTION
     The time utility executes and times command by initiating a timer and
     passing the command to the shell.  After the command finishes, time
     writes to the standard error stream, (in seconds): the total time
     elapsed, the time used to execute the command process and the time con-
     sumed by system overhead.

     Available options:

     -a      If the -o flag is used, append to the specified file rather than
             overwriting it.  Otherwise, this option has no effect.

     -h      Print times in a human friendly format.  Times are printed in
             minutes, hours, etc. as appropiate.

     -l      The contents of the rusage structure are printed as well.

     -o file

>How-To-Repeat:
guest# time -h ls
-h: Command not found.
0.000u 0.000s 0:00.00 0.0%      0+0k 0+0io 0pf+0w
guest# time -p ls
-p: Command not found.
0.000u 0.000s 0:00.00 0.0%      0+0k 0+0io 0pf+0w
guest# time -l ls
-l: Command not found.
0.000u 0.000s 0:00.00 0.0%      0+0k 0+0io 0pf+0w

>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




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