summaryrefslogtreecommitdiff
path: root/bin/ksh/sh.1
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-12-22 18:48:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-12-22 18:48:57 +0000
commitd26ff498a561775b6ff5b455c61f11e4cd8bd873 (patch)
treeff4e518d3293d20627c5c54ae78236d553c9f434 /bin/ksh/sh.1
parent789ed5943cc6349ea0276feedb68a6131a42455d (diff)
Our times(3) just calls getrusage(2) and gettimeofday(2), converting seconds
to ticks. Since ksh needs things in seconds it then converted them back. Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly. With man page help from jmc@
Diffstat (limited to 'bin/ksh/sh.1')
-rw-r--r--bin/ksh/sh.111
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index fb43b599d24..fce1d6b72d8 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.55 2004/12/12 17:37:45 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.56 2004/12/22 18:48:56 millert Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -3256,8 +3256,13 @@ Use tests like
.Ic if \&[ \&"X$foo\&" = Xbar \&]
instead.
.It Ic times
-Print the accumulated user and system times used by the shell and by processes
-which have exited that the shell started.
+Print the accumulated user and system times used both by the shell
+and by processes that the shell started which have exited.
+The format of the output is:
+.Bd -literal -offset indent
+0m0.00s 0m0.00s
+0m0.00s 0m0.00s
+.Ed
.It Ic trap Op Ar handler signal ...
Sets a trap handler that is to be executed when any of the specified signals are
received.