diff --git a/README.md b/README.md index ebd465264..068d8dc62 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ to the last stable release (93u+ 2012-08-01) of [ksh93](http://www.kornshell.com/), formerly developed by AT&T Software Technology (AST). The sources in this repository were forked from the -Github [AST repository](https://github.com/att/ast) +GitHub [AST repository](https://github.com/att/ast) which is no longer under active development. For user-visible fixes, see [NEWS](https://github.com/ksh93/ksh/blame/master/NEWS) @@ -175,7 +175,7 @@ KSH-88: two to sixty-four. You can also do double precision floating point arithmetic. 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 + as an argument expansion or as a separate command. In addition, there is an arithmetic for command that works like the for statement in C. * Arrays: KSH-93 supports both indexed and associative arrays. The subscript for an indexed array is an arithmetic expression, whereas, the subscript @@ -192,7 +192,7 @@ KSH-88: case, field width, and justification to shell variables. * More pattern matching capabilities: KSH-93 allows you to specify extended regular expressions for file and string matches. -* KSH-93 uses a hierarchal name space for variables. Compound variables can +* KSH-93 uses a hierarchical name space for variables. Compound variables can be defined and variables can be passed by reference. In addition, each variable can have one or more disciplines associated with it to intercept assignments and references. diff --git a/docs/ksh/builtins.html b/docs/ksh/builtins.html index 2465fb54b..530d82048 100644 --- a/docs/ksh/builtins.html +++ b/docs/ksh/builtins.html @@ -128,7 +128,7 @@ to terminate your command. The return value will become the exit status of the command. The open built-in, installed in lib/ksh in the AST Toolkit, uses this method. The Shbltin_t structure contains a field named shp which is -a pointer the the shell data that is needed for shell library callbacks. +a pointer to the shell data that is needed for shell library callbacks. It also contains the fields, shrun, shtrap, shexit, and shbltin that are function pointers to the shell library functions sh_run, sh_trap @@ -412,7 +412,7 @@ The variable opt_info.num will contain this value after the given argument is encountered.
The nval 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 nv_getval() returns a pointer the the +The nv_getval() 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 nv_getval() call @@ -593,7 +593,7 @@ The getval() function is called by nv_getval() value and must return a string. The getnum() -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 nv_getval() and convert the result to a number. diff --git a/docs/ksh/faq.html b/docs/ksh/faq.html index 43319e28f..33cc2a5b2 100644 --- a/docs/ksh/faq.html +++ b/docs/ksh/faq.html @@ -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) software, @@ -389,7 +389,7 @@ If you run kill -l $? -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.
diff --git a/src/cmd/INIT/ratz.c b/src/cmd/INIT/ratz.c
index 944a92f6e..0de42fc9c 100644
--- a/src/cmd/INIT/ratz.c
+++ b/src/cmd/INIT/ratz.c
@@ -1761,7 +1761,7 @@ unsigned short FAR *work;
This routine assumes, but does not check, that all of the entries in
lens[] are in the range 0..MAXBITS. The caller must assure this.
- 1..MAXBITS is interpreted as that code length. zero means that that
+ 1..MAXBITS is interpreted as that code length. zero means that
symbol does not occur in this code.
The codes are sorted by computing a count of codes for each length,
diff --git a/src/cmd/ksh93/COMPATIBILITY b/src/cmd/ksh93/COMPATIBILITY
index 2c02c8fc9..e70aa2c83 100644
--- a/src/cmd/ksh93/COMPATIBILITY
+++ b/src/cmd/ksh93/COMPATIBILITY
@@ -132,7 +132,7 @@ omitted features that are completely upward compatible.
with ksh-93, ${foo-~} will cause tilde expansion if foo is
not set. You need to escape the ~ for the previous behavior.
-8. Some changes in the tokenizing rules where made that might
+8. Some changes in the tokenizing rules were made that might
cause some scripts with previously ambiguous use of quoting
to produce syntax errors.
diff --git a/src/cmd/ksh93/OBSOLETE b/src/cmd/ksh93/OBSOLETE
index 793d23f59..006e5de4c 100644
--- a/src/cmd/ksh93/OBSOLETE
+++ b/src/cmd/ksh93/OBSOLETE
@@ -120,13 +120,13 @@ to re-execute the command.
.LI
The
.B \-t
-option to \fBalias\fR builtin is is obsolete. It
+option to \fBalias\fR builtin is obsolete. It
is used to set and list tracked aliases.
There is no replacement.
.LI
The shell command line option
.B \-t
-is obsolete. This option cause the shell to exit after reading
+is obsolete. This option causes the shell to exit after reading
and executing one command. The is no replacement (although ending
\&"command" with the exit builtin should have the same effect).
.LI
diff --git a/src/cmd/ksh93/PROMO.mm b/src/cmd/ksh93/PROMO.mm
index def455224..f542dbdb8 100644
--- a/src/cmd/ksh93/PROMO.mm
+++ b/src/cmd/ksh93/PROMO.mm
@@ -102,7 +102,7 @@ field width, and justification to shell variables.
More pattern matching capabilities: KSH-93 allows you to specify
extended regular expressions for file and string matches.
.LI
-KSH-93 uses a hierarchal name space for variables.
+KSH-93 uses a hierarchical name space for variables.
Compound variables can be defined and variables can
be passed by reference. In addition, each variable
can have one or more disciplines associated with
diff --git a/src/cmd/ksh93/RELEASE b/src/cmd/ksh93/RELEASE
index 2faf28a49..cf91ff583 100644
--- a/src/cmd/ksh93/RELEASE
+++ b/src/cmd/ksh93/RELEASE
@@ -78,7 +78,7 @@
the compile test.
12-05-25 A command substitution containing a here-document that itself contains
a here-document no longer hangs.
-12-05-24 When the redirection operatory >; is directed to a symlink, it now
+12-05-24 When the redirection operator >; is directed to a symlink, it now
overwrites the file named by the link rather than the link.
12-05-21 +Added printf formats %(type)q where type can be html, url, pattern,
ere, or csv.
@@ -137,7 +137,7 @@
string when i was a valid subscript and j was <=0 rather than
generating nothing has been fixed.
12-04-17 A bug in which read -d delim from a terminal did not respond to
- interrupt and did not termrinate when the delimiter was entered
+ interrupt and did not terminate when the delimiter was entered
has been fixed.
12-04-17 A bug in which a directory in PATH containing a .paths file that
contains a line with FPATH=dir, where dir does not exist could
@@ -153,7 +153,7 @@
are associated with the directory in PATH containing the .paths file.
12-04-09 Increased I/O buffer sizes for better performance.
12-04-09 A bug in which the leading 0 was stripped from $x, when $x contained
- a heximadecimal constant inside an arithmetic expression inside
+ a hexadecimal constant inside an arithmetic expression inside
a for or while loop.
12-04-06 Modified namespaces to hand variables FPATH, PATH, and OPTIND that
are defined in name spaces appropriately. This also fixed OPTIND
@@ -221,7 +221,7 @@
12-02-29 --- Release ksh93u+ ---
12-02-29 A bug in which ~user expanded first in a subshell prevented it
from expanding later in a program has been fixed.
-12-02-29 A bug which could lead to a core dump when more that four shared
+12-02-29 A bug which could lead to a core dump when more than four shared
libraries were added with the builtin command has been fixed.
12-02-29 Fixed a few bugs which caused SIGCHLD to be blocked preventing
background jobs from being reaped until a foreground job was run.
@@ -251,17 +251,17 @@
array elements has been fixed.
12-02-02 A bug in the ulimit option table was fixed.
12-01-26 A bug in which a set command that did not change monitor could
- effect the behavior of the monitor when monitor mode is on is fixed.
+ affect the behavior of the monitor when monitor mode is on is fixed.
12-01-21 +You can now test whether the shell implements a math function using
typeset -f .sh.math.name, where name is the name of the function.
12-01-21 A bug in which typeset -L and typeset -R did not handle multibyte
characters correctly has been fixed.
12-01-20 A bug that could cause the shell to hang waiting for an incorrect
job pid has been fixed.
-12-01-19 A memory leak which occurred for a nested command subtiution has been
+12-01-19 A memory leak which occurred for a nested command substitution has been
fixed.
12-01-17 A bug in which typeset -u PS1 could enable the uppercase attribute
- for some other variables, for exampe, HISTFILE has been fixed.
+ for some other variables, for example, HISTFILE has been fixed.
12-01-16 A bug in which .sh.match was not correct after a substring match when
the replacement string contained a substring match has been fixed.
12-01-12 +Files that are sourced from profile files are now read and executed
@@ -287,7 +287,7 @@
been fixed.
11-12-07 I fixed a bug in which a variable expansion in a large here-document
could be expanded to a null string.
-11-12-06 An optimization to read was added in the case the the read command
+11-12-06 An optimization to read was added in the case the read command
was redirected from a file.
11-12-06 Changes were made to make the line limit for read unlimited by
default.
@@ -305,7 +305,7 @@
recursion.
11-10-10 +Added alternate flag to printf %H for encoding of URI's.
11-10-10 A bug which could lead to a core dump when the shell was invoked
- with more than twenty five open files has been fixed.
+ with more than twenty-five open files has been fixed.
11-10-06 A bug in the scoping of name references in functions called by other
functions has been fixed.
11-10-05 A bug in which wait on a pid may return the exit status of an
@@ -317,7 +317,7 @@
11-09-21 Added letoctal option that enables the let command to recognize
octal constants starting with 0.
11-09-20 A bug in which ${var.} could cause a core dump has been fixed.
-11-09-20 A bug with SHOPT_EDPREDICT when neither vi or emacs was enabled for
+11-09-20 A bug with SHOPT_EDPREDICT when neither vi nor emacs was enabled for
lines beginning with # when in a multibyte locale has been fixed.
11-09-20 A bug in emacs edit mode with SHOPT_EDPREDICT that would cause
history searches matching comments lines to generate predictions
@@ -522,7 +522,7 @@
an array has been fixed.
10-11-23 If a type definition is made without a compound variable assignment it
produces an error message and no longer shows up as a defined type.
-10-11-22 The handling of \ inside [...] for for shell and ~(E) patterns has
+10-11-22 The handling of \ inside [...] for shell and ~(E) patterns has
been fixed.
10-11-22 A patch was made to pfsh to handle an error case.
10-11-22 +Modified types defined in namespace so that they do not clash with
@@ -733,7 +733,7 @@
the variable had an attribute but did not have a value.
10-06-18 Modified trap handling so that if the same signal is received when
executing the handler, it is deferred until the handler completes.
-10-06-16 Fixed a bug in which ulimit -v was setting the the cpu limit
+10-06-16 Fixed a bug in which ulimit -v was setting the cpu limit
on Linux.
10-06-14 +The command 'typeset -T' now generates the list of type definitions
in a format that can be used as input to the shell.
@@ -1045,7 +1045,7 @@
09-06-19 Two bugs related to read -b for array variables has been fixed.
09-06-19 A bug with typeset for compound variables containing arrays of
compound variables has been fixed.
-09-06-18 A bug in appending a compound variable to a an indexed array of
+09-06-18 A bug in appending a compound variable to an indexed array of
compound variables has been fixed.
09-06-18 A bug which occurs when appending a compound variable to an indexed
array element has been fixed.
@@ -1088,7 +1088,7 @@
09-04-07 The emacs edit command M-_ and M_. and the vi command _ was fixed
to handle the case there there is no history file.
09-04-05 A bug in handling new-lines with read -n has been fixed.
-09-04-05 The ENV variable defaults the the file named by $HOME/.kshrc rather
+09-04-05 The ENV variable defaults to the file named by $HOME/.kshrc rather
then to the string $HOME/.kshrc.
09-03-31 A bug in which a nested command substitution with redirections could
leave a file descriptor open has been fixed.
@@ -1336,7 +1336,7 @@
08-06-23 _KSH_VERSION added as a name reference to .sh.version.
08-06-20 type now outputs 'special builtin' for special builtins.
08-06-19 A couple of bugs in multi-dimensional arrays have been fixed.
-08-06-19 A bug in which a syntax error in a dot script could generated
+08-06-19 A bug in which a syntax error in a dot script could generate
a syntax error in the next subsequent command has been fixed.
08-06-17 Reduced the maximum function call depth to 2048 to avoid exceptions
on some architectures.
@@ -1344,7 +1344,7 @@
specified variable was not set has been fixed.
08-06-16 +When typeset -p is followed by variable names, it now displays
the attributes names and values for the specific names.
-08-06-14 A bug that could effect the drawing of the screen from multiline
+08-06-14 A bug that could affect the drawing of the screen from multiline
emacs or gmacs mode when walking up the history file has been fixed.
08-06-13 A bug in which a compound variable defined in a subshell could
have side effects into the parent shell has been fixed.
@@ -1477,7 +1477,7 @@
files, generates the output in a temporary file and writes the
specified file only of the command has completed successfully.
08-02-15 A bug in ${var/pattern/string} for patterns of the form ?(*) and +(*)
- has bee fixed.
+ has been fixed.
08-02-07 A bug in which test \( ! -e \) produced an error has been fixed.
08-02-14 +The typeset -a option can now optionally be followed by the name
of an enumeration type which allows subscripts to be enumerations.
@@ -1525,7 +1525,7 @@
08-04-11 A bug which caused $(exec > /dev/null) to go into an infinite loop
has been fixed.
08-03-27 A bug in which typeset -LZ was being treated as -RZ has been fixed.
-08-03-06 A bug with ksh -P on systems that support the the profile shell,
+08-03-06 A bug with ksh -P on systems that support the profile shell,
in which it would exit after running a non-builtin has been fixed.
08-01-31 A bug in which command substitution inside ((...)) could cause
syntax errors or lead to core dumps has been fixed.
@@ -1568,9 +1568,9 @@
07-11-15 A bug in which "hash -- name" treated "--" as an invalid name operand
has been fixed.
07-11-15 typeset now handles "-t -- [-r] [--]" for s5r4 hash(1) compatibility.
-07-11-15 A bug in which the umask builtin mis-handled symbolic mode operands
+07-11-15 A bug in which the umask builtin mishandled symbolic mode operands
has been fixed.
-07-11-15 Bugs in which shell arithmetic and the printf builtin mis-handled the
+07-11-15 Bugs in which shell arithmetic and the printf builtin mishandled the
signs of { -NaN -Inf -0.0 } have been fixed.
07-11-15 +The full { SIGRTMIN SIGRTMIN+1 ... SIGRTMAX-1 SIGRTMAX } range
of signals, determined at runtime, are now supported.
@@ -1598,7 +1598,7 @@
07-09-20 A bug in which a nameref to a compound variable that was local
to the calling function would not expand correctly when displaying
is value has been fixed.
-07-09-19 A bug which cause cause a core dump if .sh.edchar returned
+07-09-19 A bug which could cause a core dump if .sh.edchar returned
80 characters or more from a keyboard trap has been fixed.
07-09-14 A bug in which could cause a core dump when more than 8 file
descriptors were in use has been fixed.
@@ -1618,7 +1618,7 @@
has been fixed.
07-08-08 A bug in which a trap ignored in a subshell caused it to be
ignored by the parent has been fixed.
-07-08-07 A bug in which the set command would generated erroneous output
+07-08-07 A bug in which the set command would generate erroneous output
for a variable with the -RZ attribute if the variable name had been
passed to a function has been fixed.
07-08-02 A bug in which read x[1] could core dump has been fixed.
@@ -1693,7 +1693,7 @@
06-11-20 A bug in which "${foo[@]:1}}" expands a null argument (instead of
no argument), when foo[0] is not empty has been fixed.
06-11-16 The discipline functions have been modified to allow each subscript
- to act independently. Currently the discipline function will not
+ to act independently. Currently, the discipline function will not
be called when called from a discipline function of the same variable.
06-11-14 A bug which could cause a core dump if a file descriptor for
an internal file was closed from with a subshell has been fixed.
@@ -1955,7 +1955,7 @@
the shared library named by libname will first be searched for a
built-in version of the command.
04-09-03 <<< here documents now handle quotes in the word token correctly.
-04-08-08 +The maximum size for read -n and and read -N was increased from
+04-08-08 +The maximum size for read -n and read -N was increased from
4095 to 32M.
04-08-04 +printf %q was modified so that if an no operand was supplied, no
no output would be generated rather than a quoted empty string.
@@ -2122,7 +2122,7 @@
would go to the standard output of the invoking command when
uname was invoked with a non-standard option has been fixed.
03-05-19 A job control bug which would cause the shell to exit because
- it hadn't take back the terminal has been fixed. The bug
+ it hadn't taken back the terminal has been fixed. The bug
could occur when running a function that contained a pipeline
whose last element was a function.
03-05-19 A job control timing bug introduced in ksh93o on some systems
@@ -2380,7 +2380,7 @@
01-09-25 Some spelling errors in the documentation were corrected.
01-09-24 +The /dev/tcp/host/port and /dev/udp/host/port now allow
the ports to be specified by service name.
-01-09-24 +The change staring with ksh93g in which the the appropriate
+01-09-24 +The change staring with ksh93g in which the appropriate
library path variable is prepended with a corresponding library
directory has been modified. With the new method, only the
library path defined in the file named .paths in the directory
@@ -2437,7 +2437,7 @@
long integers to floating point variables has been fixed.
01-06-18 A bug in the handling of unsigned integers (typeset -ui) has
been fixed.
-01-06-04 The evaluation of the PS1 prompt no longer effects the value
+01-06-04 The evaluation of the PS1 prompt no longer affects the value
of the $? variable.
01-06-01 A small memory leak from subshells has been fixed.
01-05-22 A bug in which attributes for variables that did not have
@@ -2505,13 +2505,13 @@
command and copies the remainder so that it can be used
for standard input.
01-04-30 +The shcomp command was modified so that it can work in an
- EBCIDIC environment and that binary scripts are portable
+ EBCDIC environment and that binary scripts are portable
across environments.
01-04-30 A bug in the handling of a trailing : in PATH has been fixed.
01-04-30 A bug in which the builtin version of a command would get invoked
even though the full pathname for the command was specified
has been fixed.
-01-04-30 A bug in which read would loose the last character when
+01-04-30 A bug in which read would lose the last character when
reading the last line of a file that did not contain a new-line
character has been fixed.
01-04-23 A bug on some systems in which in vi mode the end of file
@@ -2711,7 +2711,7 @@
trap is not triggered while executing trap commands
to avoid recursive trap calls.
99-03-31 A bug in which a local variable in a function declared readonly
- would generated an error when the function went out of
+ would generate an error when the function went out of
scope has been fixed.
99-03-31 A bug in which \