Deleted Added
full compact
time.1 (50477) time.1 (51090)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)time.1 8.1 (Berkeley) 6/6/93
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)time.1 8.1 (Berkeley) 6/6/93
33.\" $FreeBSD: head/usr.bin/time/time.1 50477 1999-08-28 01:08:13Z peter $
33.\" $FreeBSD: head/usr.bin/time/time.1 51090 1999-09-08 15:40:46Z sheldonh $
34.\"
35.Dd June 6, 1993
36.Dt TIME 1
37.Os BSD 4
38.Sh NAME
39.Nm time
40.Nd time command execution
41.Sh SYNOPSIS

--- 43 unchanged lines hidden (view full) ---

85.Fl a
86flag is not specified, the file will be overwritten.
87.It Fl p
88Makes
89.Nm
90output POSIX.2 compliant (each time is printed on its own line).
91.El
92.Pp
34.\"
35.Dd June 6, 1993
36.Dt TIME 1
37.Os BSD 4
38.Sh NAME
39.Nm time
40.Nd time command execution
41.Sh SYNOPSIS

--- 43 unchanged lines hidden (view full) ---

85.Fl a
86flag is not specified, the file will be overwritten.
87.It Fl p
88Makes
89.Nm
90output POSIX.2 compliant (each time is printed on its own line).
91.El
92.Pp
93Most shells (including
94.Xr csh 1 )
95have their own and syntactically different builtin version of
96.Nm time .
97The command described here
98is available as
99.Pa /usr/bin/time
100to users of those shells.
93Some shells may provide a builtin
94.Nm
95command which is similar or identical to this utility. Consult
96the
97.Xr builtin 1
98manual page.
101.Sh DIAGNOSTICS
102If
103.Ar command
104could be timed successfully, its exit status is returned. In case
105.Ar command
106terminated abnormally, a warning message is output to stderr.
107If the
108.Ar command
109was found but could not be run, the exit status is 126.
110If no
111.Ar command
112could be found at all, the exit status is 127.
113If
114.Nm
115encounters any other error, the exit status is between 1 and 125
116included.
117.Sh SEE ALSO
99.Sh DIAGNOSTICS
100If
101.Ar command
102could be timed successfully, its exit status is returned. In case
103.Ar command
104terminated abnormally, a warning message is output to stderr.
105If the
106.Ar command
107was found but could not be run, the exit status is 126.
108If no
109.Ar command
110could be found at all, the exit status is 127.
111If
112.Nm
113encounters any other error, the exit status is between 1 and 125
114included.
115.Sh SEE ALSO
116.Xr builtin 1 ,
118.Xr csh 1 ,
119.Xr getrusage 2 ,
120.Xr wait 2
121.Sh STANDARDS
122The
123.Nm
124utility is expected to conform to ISO/IEC 9945-2:1993 (``POSIX'').
125.Sh HISTORY
126A
127.Nm
128command appeared in
129.At v6 .
117.Xr csh 1 ,
118.Xr getrusage 2 ,
119.Xr wait 2
120.Sh STANDARDS
121The
122.Nm
123utility is expected to conform to ISO/IEC 9945-2:1993 (``POSIX'').
124.Sh HISTORY
125A
126.Nm
127command appeared in
128.At v6 .