diff options
author | Daniel LEVAI <leva@ecentrum.hu> | 2010-05-13 01:01:03 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 01:01:03 +0200 |
commit | 6ec76a9860188c0e2de54daf61f5a4ff590ad8ef (patch) | |
tree | edd70b526118253bc6ab17c0dcd069325fa5016f /system/pdksh/patches/050_various-man-fixes.patch | |
parent | 387f1e8f9c14fc5648eee03d43787806c806fe20 (diff) | |
download | slackbuilds-6ec76a9860188c0e2de54daf61f5a4ff590ad8ef.tar.gz |
system/pdksh: Added to 13.0 repository
Diffstat (limited to 'system/pdksh/patches/050_various-man-fixes.patch')
-rw-r--r-- | system/pdksh/patches/050_various-man-fixes.patch | 260 |
1 files changed, 260 insertions, 0 deletions
diff --git a/system/pdksh/patches/050_various-man-fixes.patch b/system/pdksh/patches/050_various-man-fixes.patch new file mode 100644 index 0000000000..8504f3eca7 --- /dev/null +++ b/system/pdksh/patches/050_various-man-fixes.patch @@ -0,0 +1,260 @@ +Various fixes (typos, references, etc.) to ksh(1) man page. +Index: pdksh-5.2.14/ksh.Man +=================================================================== +--- pdksh-5.2.14.orig/ksh.Man 2009-09-16 23:23:42.000000000 +0200 ++++ pdksh-5.2.14/ksh.Man 2009-09-16 23:23:46.000000000 +0200 +@@ -18,7 +18,7 @@ + .\"}}} + .\"{{{ Title + .ksh( +-.TH KSH 1 "August 19, 1996" "" "User commands" ++.TH PDKSH 1 "August 19, 1996" "" "User commands" + .ksh) + .sh( + .TH SH 1 "August 19, 1996" "" "User commands" +@@ -27,7 +27,7 @@ + .\"{{{ Name + .SH NAME + .ksh( +-ksh \- Public domain Korn shell ++pdksh \- Public domain Korn shell + .ksh) + .sh( + sh \- Public domain Bourne shell +@@ -37,12 +37,12 @@ + .SH SYNOPSIS + .ad l + .ksh( +-\fBksh\fP ++\fBpdksh\fP + .ksh) + .sh( + \fBsh\fP + .sh) +-[\fB\(+-abCefhikmnprsuvxX\fP] [\fB\(+-o\fP \fIoption\fP] [ [ \fB\-c\fP \fIcommand-string\fP [\fIcommand-name\fP] | \fB\-s\fP | \fIfile\fP ] [\fIargument\fP ...] ] ++[\fB+\-abCefhikmnprsuvxX\fP] [\fB+\-o\fP \fIoption\fP] [ [ \fB\-c\fP \fIcommand-string\fP [\fIcommand-name\fP] | \fB\-s\fP | \fIfile\fP ] [\fIargument\fP ...] ] + .ad b + .\"}}} + .\"{{{ Description +@@ -602,7 +602,7 @@ + The later form can be treated as arrays by appending an array + index of the form: \fB[\fP\fIexpr\fP\fB]\fP where \fIexpr\fP is + an arithmetic expression. +-Array indicies are currently limited to the range 0 through 1023, inclusive. ++Array indices are currently limited to the range 0 through 1023, inclusive. + Parameter substitutions take the form \fB$\fP\fIname\fP, + \fB${\fP\fIname\fP\fB}\fP or + \fB${\fP\fIname\fP\fB[\fP\fIexpr\fP\fB]}\fP, where \fIname\fP is a +@@ -640,7 +640,7 @@ + .\"{{{ environment + Parameters with the export attribute (set using the \fBexport\fP or + \fBtypeset \-x\fP commands, or by parameter assignments followed by simple +-commands) are put in the environment (see \fIenviron\fP(5)) of commands ++commands) are put in the environment (see \fIenviron\fP(7)) of commands + run by the shell as \fIname\fP\fB=\fP\fIvalue\fP pairs. + The order in which parameters appear in the environment of a command + is unspecified. +@@ -1119,12 +1119,12 @@ + like \fB[\fP..\fB]\fP, except it matches any character not inside the brackets. + .ksh( + .IP "\fB*(\fP\fIpattern\fP\fB|\fP ... \fP|\fP\fIpattern\fP\fB)\fP" +-matches any string of characters that matches zero or more occurances ++matches any string of characters that matches zero or more occurrences + of the specified patterns. + Example: the pattern \fB*(foo|bar)\fP matches the strings + `', `foo', `bar', `foobarfoo', \fIetc.\fP. + .IP "\fB+(\fP\fIpattern\fP\fB|\fP ... \fP|\fP\fIpattern\fP\fB)\fP" +-matches any string of characters that matches one or more occurances ++matches any string of characters that matches one or more occurrences + of the specified patterns. + Example: the pattern \fB+(foo|bar)\fP matches the strings + `foo', `bar', `foobarfoo', \fIetc.\fP. +@@ -1306,8 +1306,8 @@ + When used as a prefix operator, the result is the incremented value of + the parameter, when used as a postfix operator, the result is the + original value of the parameter. +-.IP "\fB++\fP" +-similar to \fB++\fP, except the paramter is decremented by 1. ++.IP "\fB--\fP" ++similar to \fB++\fP, except the parameter is decremented by 1. + .IP "\fB,\fP" + separates two arithmetic expressions; the left hand side is evaluated first, + then the right. The result is value of the expression on the right hand side. +@@ -1383,7 +1383,7 @@ + This can be avoided by redirecting the output to a numbered + file descriptor (as this also causes the shell to close its copy). + Note that this behaviour is slightly different from the original Korn shell +-which closes its copy of the write portion of the co-processs output when the ++which closes its copy of the write portion of the co-process's output when the + most recently started co-process (instead of when all sharing co-processes) + exits. + .IP \ \ \(bu +@@ -1450,7 +1450,7 @@ + the \fB$0\fP parameter is set to the name of the function + (Bourne-style functions leave \fB$0\fP untouched). + .IP \ \ \(bu +-parameter assignments preceeding function calls are not kept in ++parameter assignments preceding function calls are not kept in + the shell environment + (executing Bourne-style functions will keep assignments). + .IP \ \ \(bu +@@ -1540,6 +1540,10 @@ + For example, `\fBset \-\- `false`; echo $?\fP' prints 0 in posix mode, + 1 in non-posix mode. This construct is used in most shell scripts that + use the old \fIgetopt\fP(1) command. ++.br ++(\fBDEBIAN NOTE\fP: This is no longer true on Debian systems. For compatibility ++with ksh93, \fBset\fP command always returns exit status set to 0, regardless ++of posix or non-posix mode.) + .IP \ \ \(bu + argument expansion of \fBalias\fP, \fBexport\fP, \fBreadonly\fP, and + \fBtypeset\fP commands: in posix mode, normal argument expansion done; +@@ -1585,7 +1589,7 @@ + Just to confuse things, if the posix option is turned off (see \fBset\fP + command below) some special commands are very special in that + no field splitting, file globing, brace expansion nor tilde expansion +-is preformed on arguments that look like assignments. ++is performed on arguments that look like assignments. + Regular built-in commands are different only in that the \fBPATH\fP + parameter is not used to find them. + .PP +@@ -1644,7 +1648,7 @@ + Exit status is set to zero. + .\"}}} + .\"{{{ alias [ -d | +-t [ -r ] ] [+-px] [+-] [name1[=value1] ...] +-.IP "\fBalias\fP [ \fB\-d\fP | \fB\(+-t\fP [\fB\-r\fP] ] [\fB\(+-px\fP] [\fB\(+-\fP] [\fIname1\fP[\fB=\fP\fIvalue1\fP] ...]" ++.IP "\fBalias\fP [ \fB\-d\fP | \fB+\-t\fP [\fB\-r\fP] ] [\fB+\-px\fP] [\fB+\-\fP] [\fIname1\fP[\fB=\fP\fIvalue1\fP] ...]" + Without arguments, \fBalias\fP lists all aliases. + For any name without a value, the existing alias is listed. + Any name with a value defines an alias (see Aliases above). +@@ -1694,7 +1698,7 @@ + .IP "\fBcd\fP [\fB\-LP\fP] [\fIdir\fP]" + Set the working directory to \fIdir\fP. If the parameter \fBCDPATH\fP + is set, it lists directories to search in for \fIdir\fP. +-\fIdir\fP. An empty entry in the \fBCDPATH\fP entry means the current ++An empty entry in the \fBCDPATH\fP entry means the current + directory. + If a non-empty directory from \fBCDPATH\fP is used, the resulting full + path is printed to standard output. +@@ -1788,6 +1792,9 @@ + commands that are not built-in to the shell). + Note that the Bourne shell differs here: it does pass these + file descriptors on. ++.br ++(\fBDEBIAN NOTE\fP: when the shell is called as \fI/bin/sh\fP, it does pass ++these file descriptors on, like the Bourne shell.) + .ksh) + .sh( + Any file descriptors which are opened or \fIdup\fP(2)-ed +@@ -2008,12 +2015,12 @@ + while the original Korn shell only treats profiles as \fB.\fP scripts. + .\"}}} + .\"{{{ set [+-abCefhkmnpsuvxX] [+-o [option]] [+-A name] [--] [arg ...] +-.IP "\fBset\fP [\fB\(+-abCefhkmnpsuvxX\fP] [\fB\(+-o\fP [\fIoption\fP]] [\fB\(+-A\fP \fIname\fP] [\fB\-\-\fP] [\fIarg\fP ...]" ++.IP "\fBset\fP [\fB+\-abCefhkmnpsuvxX\fP] [\fB+\-o\fP [\fIoption\fP]] [\fB+\-A\fP \fIname\fP] [\fB\-\-\fP] [\fIarg\fP ...]" + The set command can be used to set (\fB\-\fP) or clear (\fB+\fP) shell options, + set the positional parameters, or set an array parameter. +-Options can be changed using the \fB\(+-o\fP \fIoption\fP syntax, ++Options can be changed using the \fB+\-o\fP \fIoption\fP syntax, + where \fIoption\fP is the long name of an option, or using +-the \fB\(+-\fP\fIletter\fP syntax, where \fIletter\fP is the ++the \fB+\-\fP\fIletter\fP syntax, where \fIletter\fP is the + option's single letter name (not all options have a single letter name). + The following table lists both option letters (if they exist) and long names + along with a description of what the option does. +@@ -2144,7 +2151,7 @@ + Causes the \fBcd\fP and \fBpwd\fP commands to use `physical' + (\fIi.e.\fP, the filesystem's) \fB..\fP directories instead of `logical' + directories (\fIi.e.\fP, the shell handles \fB..\fP, which allows the user +-to be obliveous of symlink links to directories). ++to be oblivious of symlink links to directories). + Clear by default. Note that setting + this option does not effect the current value of the \fBPWD\fP parameter; + only the \fBcd\fP command changes \fBPWD\fP. +@@ -2153,6 +2160,10 @@ + posix T{ + Enable posix mode. See POSIX Mode above. + T} ++ sh T{ ++This option is set only when ksh was called as a standard \fI/bin/sh\fP shell. ++(Note: This option is a Debian and OpenBSD addition). ++T} + vi T{ + Enable vi-like command line editing (interactive shells only). + T} +@@ -2419,7 +2430,7 @@ + are received. + \fBHandler\fP is either a null string, indicating the signals are to + be ignored, a minus (\fB\-\fP), indicating that the default action is to +-be taken for the signals (see signal(2 or 3)), or a string containing shell ++be taken for the signals (see signal(2)), or a string containing shell + commands to be evaluated and executed at the first opportunity (\fIi.e.\fP, + when the current command completes, or before printing the next \fBPS1\fP + prompt) after receipt of one of the signals. +@@ -2450,7 +2461,7 @@ + A command that exits with a zero value. + .\"}}} + .\"{{{ typeset [[+-Ulprtux] [-L[n]] [-R[n]] [-Z[n]] [-i[n]] | -f [-tux]] [name[=value] ...] +-.IP "\fBtypeset\fP [[\(+-Ulprtux] [\fB\-L\fP[\fIn\fP]] [\fB\-R\fP[\fIn\fP]] [\fB\-Z\fP[\fIn\fP]] [\fB\-i\fP[\fIn\fP]] | \fB\-f\fP [\fB\-tux\fP]] [\fIname\fP[\fB=\fP\fIvalue\fP] ...]" ++.IP "\fBtypeset\fP [[+\-Ulprtux] [\fB\-L\fP[\fIn\fP]] [\fB\-R\fP[\fIn\fP]] [\fB\-Z\fP[\fIn\fP]] [\fB\-i\fP[\fIn\fP]] | \fB\-f\fP [\fB\-tux\fP]] [\fIname\fP[\fB=\fP\fIvalue\fP] ...]" + Display or set parameter attributes. + With no \fIname\fP arguments, parameter attributes are displayed: if no options + arg used, the current attributes of all parameters are printed as typeset +@@ -2517,7 +2528,7 @@ + \-p T{ + Print complete typeset commands that can be used to re-create the + attributes (but not the values) of parameters. +-This is the default action (option exists for ksh93 compatability). ++This is the default action (option exists for ksh93 compatibility). + T} + \-r T{ + Readonly attribute: parameters with the this attribute may not be assigned to +@@ -2546,8 +2557,8 @@ + T} + .TE + .\"}}} +-.\"{{{ ulimit [-acdfHlmnpsStvw] [value] +-.IP "\fBulimit\fP [\fB\-acdfHlmnpsStvw\fP] [\fIvalue\fP]" ++.\"{{{ ulimit [-acdfHlmnpsStvwL] [value] ++.IP "\fBulimit\fP [\fB\-acdfHlmnpsStvwL\fP] [\fIvalue\fP]" + Display or set process limits. + If no options are used, the file size limit (\fB\-f\fP) is assumed. + \fBvalue\fP, if specified, may be either be an arithmetic expression or the +@@ -2592,6 +2603,8 @@ + not kbytes). + .IP \fB\-w\fP + Impose a limit of \fIn\fP kbytes on the amount of swap space used. ++.IP \fB\-L\fP ++Impose a limit of \fIn\fP locks that can be held on files. + .PP + As far as \fBulimit\fP is concerned, a block is 512 bytes. + .RE +@@ -3091,12 +3104,12 @@ + .\"}}} + .\"{{{ search-character-backward n ^[^] + .IP "\fBsearch-character-backward\fP \fIn\fP \fB^[^]\fP" +-Search backward in the current line for the \fIn\fPth occurance of the ++Search backward in the current line for the \fIn\fPth occurrence of the + next character typed. + .\"}}} + .\"{{{ search-character-forward n ^] + .IP "\fBsearch-character-forward\fP \fIn\fP \fB^]\fP" +-Search forward in the current line for the \fIn\fPth occurance of the ++Search forward in the current line for the \fIn\fPth occurrence of the + next character typed. + .\"}}} + .\"{{{ search-history ^R +@@ -3523,7 +3536,7 @@ + csh(1), ed(1), getconf(1), getopt(1), sed(1), stty(1), vi(1), + dup(2), execve(2), getgid(2), getuid(2), open(2), pipe(2), wait(2), + getopt(3), rand(3), signal(3), system(3), +-environ(5) ++environ(7) + .PP + .IR "The KornShell Command and Programming Language" , + Morris Bolsky and David Korn, 1989, ISBN 0-13-516972-0. +@@ -3535,3 +3548,4 @@ + .IR "IEEE Standard for information Technology \- Portable Operating System Interface (POSIX) \- Part 2: Shell and Utilities" , + IEEE Inc, 1993, ISBN 1-55937-255-9. + .\"}}} ++.\" vim:ft=nroff |