1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

Fix miscellaneous typos

This commit is contained in:
Martijn Dekker 2021-02-16 16:45:06 +00:00
parent 3a315f58f6
commit fe74702766
4 changed files with 7 additions and 7 deletions

View file

@ -682,7 +682,7 @@ const char sh_optgetopts[] =
"argument, \bgetopts\b places the option argument in the shell " "argument, \bgetopts\b places the option argument in the shell "
"variable \bOPTARG\b. Otherwise \bOPTARG\b is set to \b1\b when the " "variable \bOPTARG\b. Otherwise \bOPTARG\b is set to \b1\b when the "
"option is set and \b0\b when the option is unset.]" "option is set and \b0\b when the option is unset.]"
"[+?The \aoptstring\a string consists of alpha-numeric characters, " "[+?The \aoptstring\a string consists of alphanumeric characters, "
"the special characters +, -, ?, :, and <space>, or character groups " "the special characters +, -, ?, :, and <space>, or character groups "
"enclosed in [...]]. Character groups may be nested in {...}. " "enclosed in [...]]. Character groups may be nested in {...}. "
"Outside of a [...]] group, a single new-line followed by zero or " "Outside of a [...]] group, a single new-line followed by zero or "

View file

@ -2615,7 +2615,7 @@ represents the beginning and ending characters of a nested group that
will be skipped over when counting starting and ending character matches. will be skipped over when counting starting and ending character matches.
The behavior is unspecified when the first character of a The behavior is unspecified when the first character of a
.I pattern-pair\^ .I pattern-pair\^
is alpha-numeric is alphanumeric
except for the following: except for the following:
.PD 0 .PD 0
.RS .RS
@ -5111,7 +5111,7 @@ Cursor forward (right) one character.
(Right arrow) Same as \f3l\fP. (Right arrow) Same as \f3l\fP.
.TP 10 .TP 10
[\f2count\fP]\f3w\fP [\f2count\fP]\f3w\fP
Cursor forward one alpha-numeric word. Cursor forward one alphanumeric word.
.TP 10 .TP 10
[\f2count\fP]\f3W\fP [\f2count\fP]\f3W\fP
Cursor to the beginning of the next word that follows a blank. Cursor to the beginning of the next word that follows a blank.
@ -7121,7 +7121,7 @@ shells. At the moment that the \fBposix\fR option is turned on, it also turns
on \fBletoctal\fR and turns off \fB\-B\fR/\fBbraceexpand\fR; the reverse is on \fBletoctal\fR and turns off \fB\-B\fR/\fBbraceexpand\fR; the reverse is
done when \fBposix\fR is turned back off. (These options can still be done when \fBposix\fR is turned back off. (These options can still be
controlled independently in between.) Furthermore, the \fBposix\fR option controlled independently in between.) Furthermore, the \fBposix\fR option
is automaticaly turned on upon invocation if ksh is invoked as \fBsh\fR is automatically turned on upon invocation if ksh is invoked as \fBsh\fR
or \fBrsh\fR. In that case, or if the option is turned on by or \fBrsh\fR. In that case, or if the option is turned on by
specifying \fB-o posix\fR on the invocation command line, the invoked shell specifying \fB-o posix\fR on the invocation command line, the invoked shell
will not set the preset aliases even if interactive, and will not import type will not set the preset aliases even if interactive, and will not import type

View file

@ -1222,7 +1222,7 @@ The third type of parameter is a variable.
As mentioned earlier, As mentioned earlier,
\f5ksh\fP uses variables whose names \f5ksh\fP uses variables whose names
consist of one or more consist of one or more
alpha-numeric strings separated by a \fB\s+2.\s-2\fP. alphanumeric strings separated by a \fB\s+2.\s-2\fP.
There is no need to specify the There is no need to specify the
.I type .I type
of a variable in the shell because, by default, of a variable in the shell because, by default,
@ -1872,7 +1872,7 @@ Similarly, \f5[:\fP\fIclass\fP\f5:]\fP matches
each of the characters in the given \fIclass\fP each of the characters in the given \fIclass\fP
for all the ANSI-C character classes. for all the ANSI-C character classes.
For example, \f5[[:alnum:]_]\fP For example, \f5[[:alnum:]_]\fP
matches any alpha-numeric character or the character matches any alphanumeric character or the character
.BR _ . .BR _ .
.P .P
\f5ksh\fP \f5ksh\fP

View file

@ -577,7 +577,7 @@ if [[ -s "$tmp/fdleak.txt" ]]
then exec 3>&- then exec 3>&-
err_exit "Open file descriptor leaks out of subshell" err_exit "Open file descriptor leaks out of subshell"
fi fi
# However, it should still survive a shared-state command sustitution if it's not 1 (stdout). # However, it should still survive a shared-state command substitution if it's not 1 (stdout).
redirect 3>&- # close FD 3 just in case redirect 3>&- # close FD 3 just in case
: ${ redirect 3>"$tmp/fdshared.txt"; } : ${ redirect 3>"$tmp/fdshared.txt"; }
{ echo good >&3; } 2>/dev/null { echo good >&3; } 2>/dev/null