diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-03-17 18:48:44 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-03-17 18:48:44 +0000 |
commit | 2993ebaf558a2c24196c34cc6b42f9e962b8f527 (patch) | |
tree | e5d0f54f1b705385cf3bc8e9133edfad786967cf /bin/ksh/sh.1tbl | |
parent | e8c7db851c4c34cce1015e7f1984ea7d6c98402e (diff) |
Try to synchronize the ksh(1) and sh(1) man pages somewhat.
Diffstat (limited to 'bin/ksh/sh.1tbl')
-rw-r--r-- | bin/ksh/sh.1tbl | 56 |
1 files changed, 35 insertions, 21 deletions
diff --git a/bin/ksh/sh.1tbl b/bin/ksh/sh.1tbl index 25787a52e3e..c1c63a9a77d 100644 --- a/bin/ksh/sh.1tbl +++ b/bin/ksh/sh.1tbl @@ -1,4 +1,4 @@ -.\" $OpenBSD: sh.1tbl,v 1.17 2000/03/17 18:15:16 aaron Exp $ +.\" $OpenBSD: sh.1tbl,v 1.18 2000/03/17 18:48:43 aaron Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -1022,14 +1022,17 @@ is not specified, or the length of the string value of parameter .Ar name . .It Xo Ic ${# Ns Ar name Ns -.Ic \&[\&*\&]\&} , ${# Ns Ar name Ns Ic \&[\&@\&]\&} +.Ic [*\&]} , ${# Ns Ar name Ns Ic [@\&]} .Xc The number of elements in the array .Ar name . .Sm off .It Xo -.Ic ${ Ar name Ic \&# Ar pattern Ic \&},\ \& -.Ic ${ Ar name Ic \&#\&# Ar pattern Ic \&} +.Ic ${ Ar name Ic # Ar pattern +.Sm on +.Ic } , +.Sm off +.Ic ${ Ar name Ic ## Ar pattern Ic \&} .Xc .Sm on If @@ -1043,8 +1046,11 @@ results in the shortest match, and two of them result in the longest match. .Sm off .It Xo -.Ic ${ Ar name Ic \&% Ar pattern Ic \&},\ \& -.Ic ${ Ar name Ic \&%\&% Ar pattern Ic \&} +.Ic ${ Ar name Ic % Ar pattern +.Sm on +.Ic } , +.Sm off +.Ic ${ Ar name Ic %% Ar pattern Ic } .Xc .Sm on Like @@ -2055,7 +2061,8 @@ and differ somewhat in which commands are considered special or regular: .Pp -POSIX special commands +.Tn POSIX +special commands .Pp .Ic \&. , \&: , break , continue , .Ic eval , exec , exit , export , @@ -2066,11 +2073,13 @@ Additional ksh special commands .Pp .Ic builtin , times , typeset .Pp -Very special commands (non-POSIX mode) +Very special commands +.Pq Pf non- Tn POSIX .Pp .Ic alias , readonly , set , typset .Pp -POSIX regular commands +.Tn POSIX +regular commands .Pp .Ic alias , bg , cd , command , .Ic false , fc , fg , getopts , @@ -2276,7 +2285,8 @@ If the .Fl p option is given, a default search path is used instead of the current value of .Ev PATH -(the actual value of the default path is system dependent: on POSIXish +(the actual value of the default path is system dependent: on +.Tn POSIX Ns ish systems, it is the value returned by .Ic getconf CS_PATH ) . .It Ic continue Op Ar level @@ -2792,12 +2802,12 @@ The shell will not exit when end-of-file is read; must be used. .It Ic nohup Do not kill running jobs with a -.Dv HUP +.Dv SIGHUP signal when a login shell exists. Currently set by default, but this will change in the future to be compatible with the original Korn shell (which doesn't have this option, but does send the -.Dv HUP +.Dv SIGHUP signal). .It Ic nolog No effect. @@ -3163,7 +3173,7 @@ With no arguments, .Ic trap lists, as a series of .Ic trap -commands, the current start of the traps that have been set since the shell +commands, the current state of the traps that have been set since the shell started. .Pp The original Korn shell's @@ -3248,7 +3258,8 @@ Trailing whitespace is stripped. If necessary, values are either stripped of leading characters or space padded to make them fit the field width. .It Fl Z Ns Ar n -Zero fill attribute. If not combined with +Zero fill attribute. +If not combined with .Fl L , this is the same as .Fl R , @@ -3387,7 +3398,8 @@ kilobytes on the size of the stack area. .It Fl t Ar n Impose a time limit of .Ar n -CPU seconds to be used by each process. +.Tn CPU +seconds to be used by each process. .It Fl v Ar n Impose a limit of .Ar n @@ -3464,10 +3476,10 @@ below for the format of .Ar job . .Ic wait will return if a signal for which a trap has been set is received, or if a -.Dv HUP , -.Dv INT +.Dv SIGHUP , +.Dv SIGINT , or -.Dv QUIT +.Dv SIGQUIT signal is received. .Pp If no jobs are specified, @@ -3605,7 +3617,9 @@ indicates the current state of the job and can be: .Bl -tag -width "Running" .It Cm Running The job has neither stopped nor exited (note that running does not necessarily -mean consuming CPU time -- the process could be blocked waiting for some +mean consuming +.Tn CPU +time -- the process could be blocked waiting for some event). .It Cm Done Op Ar number The job exited. @@ -3638,7 +3652,7 @@ When an attempt is made to exit the shell while there are jobs in the stopped state, the shell warns the user that there are stopped jobs and does not exit. If another attempt is immediately made to exit the shell, the stopped jobs are sent a -.Dv HUP +.Dv SIGHUP signal and the shell exits. Similarly, if the .Ic nohup @@ -3646,7 +3660,7 @@ option is not set and there are running jobs when an attempt is made to exit a login shell, the shell warns the user and does not exit. If another attempt is immediately made to exit the shell, the running jobs are sent a -.Dv HUP +.Dv SIGHUP signal and the shell exits. .Sh FILES .Bl -tag -width "/etc/suid_profile" -compact |