1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fix many spelling errors and word repetitions (#188)

Many of the errors fixed in this commit are word repetitions
such as 'the the' and minor spelling errors. One formatting
error in the ksh man page has also been fixed.
This commit is contained in:
Johnothan King 2021-02-19 19:22:24 -08:00 committed by GitHub
parent 4e47f89b06
commit 2b805f7f1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 95 additions and 95 deletions

View file

@ -128,7 +128,7 @@ to terminate your command.
The return value will become the exit status of the command.
The <TT>open</TT> built-in, installed in <TT>lib/ksh</TT> in the AST Toolkit, uses this method.
The <TT>Shbltin_t</TT> structure contains a field named <TT>shp</TT> which is
a pointer the the shell data that is needed for <TT>shell</TT> library callbacks.
a pointer to the shell data that is needed for <TT>shell</TT> library callbacks.
It also contains the fields, <TT>shrun</TT>, <TT>shtrap</TT>, <TT>shexit</TT>,
and <TT>shbltin</TT>
that are function pointers to the <TT>shell</TT> library functions <TT>sh_run</TT>, <TT>sh_trap</TT>
@ -412,7 +412,7 @@ The variable <TT>opt_info.num</TT> will contain this
value after the given argument is encountered.
<DT><TT>?</TT><DD>
Used after a <TT>:</TT> or <TT>#</TT> (and after the optional <TT>?</TT>)
to indicate the the
to indicate the
preceding option argument is not required.
<DT><TT>&#0091;</TT>...<TT>&#0093;</TT><DD><BR>
After a <TT>:</TT> or <TT>#</TT>, the characters contained
@ -521,7 +521,7 @@ The <STRONG>shell</STRONG> library is used to access other shell services.
<P>
<H4><A name="The nval library">The nval library</A></H4>
A great deal of power is derived from the ability to use
portions of the hierarchal variable namespace provided by <TT>ksh-93</TT>
portions of the hierarchical variable namespace provided by <TT>ksh-93</TT>
and turn these names into active objects.
<P>
The <STRONG>nval</STRONG> library is used to interface with shell
@ -544,7 +544,7 @@ using this handle so that the space can be freed once
the value is unset.
The two most frequent operations are to get the value of
the variable, and to assign value to the variable.
The <TT>nv_getval()</TT> returns a pointer the the
The <TT>nv_getval()</TT> function returns a pointer to the
value of the variable.
In some cases the pointer returned is to a region that
will be overwritten by the next <TT>nv_getval()</TT> call
@ -593,7 +593,7 @@ The <TT>getval()</TT>
function is called by <TT>nv_getval()</TT>
value and must return a string.
The <TT>getnum()</TT>
function is called by by the arithmetic evaluator
function is called by the arithmetic evaluator
and must return double.
If omitted, then it will call <TT>nv_getval()</TT> and
convert the result to a number.

View file

@ -254,7 +254,7 @@ that supports a subset of the 1988 KornShell language.
ksh has been written to be portable.
It has been ported to virtually run on every known UNIX system.
In addition it runs on non-UNIX systems such as IBM's MVS using OpenEdition, and
In addition, it runs on non-UNIX systems such as IBM's MVS using OpenEdition, and
Microsoft's Windows 9X, Windows NT and Windows 2000.
ksh is part of the UWIN (Unix for Windows)</A>
software,
@ -389,7 +389,7 @@ If you run
kill -l $?
</DIV>
</PRE>
on this signal number, it will give the the name of the signal
on this signal number, it will give the name of the signal
that caused this exit.
<DT>When I type builtin, I notice that some of these are full pathnames. What does this mean?<DD>
@ -600,7 +600,7 @@ hand side, which removes the special meaning of pattern match
characters, then this becomes a string comparison so that
&#0091;&#0091; "$foo" == "bar" &#0093;&#0093; and &#0091;&#0091; "$bar" == "$foo" &#0093;&#0093; are equivalent.
<DT>Why does ksh93 have print since echo already exists is is widely used?<DD>
<DT>Why does ksh93 have print since echo already exists and is widely used?<DD>
The behavior of echo varies from system to system.
The POSIX standard does not define the behavior of echo when
@ -620,7 +620,7 @@ as if you had invoked it as echo foo | (read bar).
<DT>How can I access a substring of a variable?<DD>
The syntax ${varname:offset:len} can be used to generate
the string of length len starting at the the specified
the string of length len starting at the specified
offset. String offsets start at 0. If :len is omitted,
then the remainder of the string will be used. Both offset
and len can be arithmetic expressions. A negative offset is
@ -894,19 +894,19 @@ Alternatively, &lt;# and &gt;# can be followed by a shell pattern. In this
case, the file will be positioned to beginning of the next line
containing this pattern.
<DT>What is the the &lt;&lt;&lt; redirection operator?<DD>
<DT>What is the &lt;&lt;&lt; redirection operator?<DD>
It denotes a here-document in which the document is contained the
argument that follows &lt;&lt;&lt; and therefore there is no delimiter.
<DT>What is the the &gt;; redirection operator?<DD>
<DT>What is the &gt;; redirection operator?<DD>
This operator writes the output into a temporary file in the same
directory as the file specified after &gt;;. If the command completes
successfully, then the the file is replaced. Otherwise, the
successfully, then the file is replaced. Otherwise, the
original file is unchanged and the temporary file removed.
<DT>What is the the &lt;&gt;; redirection operator?<DD>
<DT>What is the &lt;&gt;; redirection operator?<DD>
The file is opened for reading and writing as with &lt;&gt;. However,
when the file is closed it is truncated to the its current location.

View file

@ -120,7 +120,7 @@ Almost the complete set of C language operators are available
with the same syntax and precedence.
Arithmetic expressions can be used to as an argument expansion
or as a separate command.
In addition there is an arithmetic for command that works
In addition, there is an arithmetic for command that works
like the for statement in C.
<P>