RELEASE93 revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesThis is a list of changes that have been made since the 12/28/93 version
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgof ksh.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
16b55a35cff91315d261d1baa776138af465c4e4fuankg1. New features in 12/28/93b
16b55a35cff91315d261d1baa776138af465c4e4fuankg a. If IFS contains two consecutive identical characters belonging
16b55a35cff91315d261d1baa776138af465c4e4fuankg to the [:space:] class, then this character is treated as
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a non-space delimiter so that each instance will delimit
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a field. For example, IFS=$'\t\t' will cause two consecutive
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes tabs to delimit a null field.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. The getopts command has a -a name option that specifies a
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes name that will be used for usage messages.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes2. New features in 12/28/93e
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg a. The math functions, atan2, hypot, fmod, and pow were added.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. When a shared library is loaded, if the function lib_init()
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes is defined in the library, it is invoked the first time that
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the library is loaded with builtin -f library.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes3. New features in 12/28/93f
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a. Hostnames in addition to host addresses can be given in
0662ed52e814f8f08ef0e09956413a792584eddffuankg /dev/tcp/host/port virtual file names.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. File name completion and expansion now quotes special
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes characters in file names from both emacs and vi edit modes.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes4. New features in 12/28/93g
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a. The pipefail option has been added. With pipefail
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes enabled, a pipeline will not complete until all
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes commands are complete, and the return value will
16b55a35cff91315d261d1baa776138af465c4e4fuankg be that of the last command to fail, or zero if
16b55a35cff91315d261d1baa776138af465c4e4fuankg all complete successfully.
16b55a35cff91315d261d1baa776138af465c4e4fuankg b. When an executable is found on a given path,
16b55a35cff91315d261d1baa776138af465c4e4fuankg the appropriate library path variable is prepended
16b55a35cff91315d261d1baa776138af465c4e4fuankg with a corresponding library directory.
16b55a35cff91315d261d1baa776138af465c4e4fuankg5. New features in 12/28/93h
16b55a35cff91315d261d1baa776138af465c4e4fuankg a. The PATH search algorithm has been modified to look
16b55a35cff91315d261d1baa776138af465c4e4fuankg for a file named .fpath in each bin directory and if
16b55a35cff91315d261d1baa776138af465c4e4fuankg found, to search for functions in this directory if
16b55a35cff91315d261d1baa776138af465c4e4fuankg it cannot find the command in that directory.
16b55a35cff91315d261d1baa776138af465c4e4fuankg b. When performing pathname expansion, the shell checks
16b55a35cff91315d261d1baa776138af465c4e4fuankg to see whether each directory it reads is case sensitive
16b55a35cff91315d261d1baa776138af465c4e4fuankg or not, and performs the matching accordingly.
16b55a35cff91315d261d1baa776138af465c4e4fuankg c. The %T format for printing formatted date/time.
16b55a35cff91315d261d1baa776138af465c4e4fuankg6. New features in 12/28/93i
16b55a35cff91315d261d1baa776138af465c4e4fuankg a. Most of the built-in commands and ksh itself are now
16b55a35cff91315d261d1baa776138af465c4e4fuankg self documenting. Running command --man will produce
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes screen output. Running command --html produces the
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes man page in html format.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. The getopts builtin can process command description
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes strings to produce man pages.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes7. Bugs fixed in 12/28/93a for default OPTIONS
16b55a35cff91315d261d1baa776138af465c4e4fuankg a. An expansion bug which causes portions of a word after
16b55a35cff91315d261d1baa776138af465c4e4fuankg a $((...)) expansion that contains a nested $var expansion
16b55a35cff91315d261d1baa776138af465c4e4fuankg to be lost has been fixed.
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg b. A bug that caused a core dump when a script that did not
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg have PWD set and did a cd inside command substitution
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg has been fixed.
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg c. A bug which caused a core dump on some machines when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the LANG variable was assigned to has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes d. A bug which incorrectly handled set disciplines that
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes performed arithmetic evaluation when the discipline
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes was called from the arithmetic evaluator has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes e. A bug caused by an EXIT trap inside a function that
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes was executed in a subshell was fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes f. If foo is a function, and not a program, then command foo
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes now reports that foo isn't found rather than invoking foo.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes g. The previous version incorrectly listed -A as an
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes invocation option. The -A option is only for set.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes h. A bug was fixed which caused ksh to loop when execution trace
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes was enabled and the PS4 prompt required command substitution.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes i. A bug which could cause the job control switch character
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to be disabled when a script that enabled monitor mode
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes terminated was fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes j. A bug in the macro expansion global replacement operator //,
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes when the pattern began with a [ or +( has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes k. A bug which prevented ~ expansion from occurring when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes it was terminated with a colon inside an assignment
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg l. A bug in the dot command which prevented autoload functions
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes from working has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes m. A bug which caused a variable to be unset if the
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes its value were expanded inside a set discipline has
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes n. Whence -a now longer reports that a defined function
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes is undefined.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes o. A bug on some systems in which $0 would be incorrect
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes in scripts invoked by name has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes p. Here documents with an empty body now work.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes 1. A bug which disabled argument passing and resetting
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes of options for a script invoked by name inside a
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes function has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes r. A bug in which an EXIT trap set the caller of a function
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes would be executed if a command called inside a function
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes was not found has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes s. A bug which allowed a script to trap signals that are
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes ignored at the time that the shell was invoked has
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes t. A bug which caused 2<&1- when applied to a shell built-in
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to leave standard input closed has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes u. A bug which caused the shell to incorrectly parse
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes $() command substitutions with nested case statements
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes8. Bugs fixed in 12/28/93b for default OPTIONS
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a. A bug which caused unset RANDOM to dump core has been
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. A bug which prevented return for terminating a profile
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes or ENV file has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes c. A bug which prevented standard input from being
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes directed to /dev/null for background jobs when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes monitor mode was turned off has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes d. Statements of the form typeset -options var[expr]=value
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes did not perform substitutions on expr as expected.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes e. A bug which prevented the shell from sending a HUP
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes signal to some background jobs that were not disowned
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes f. A bug which allowed a script to trap signals that are
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes ignored at the time that the shell was invoked by exec
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes g. A bug which could cause a core dump when a discipline
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes function was unset within a discipline was fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes h. The typeset builtin now accepts a first argument of
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes + or - for compatibility with ksh88.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes i. For compatibility with ksh88, the results of expansions
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes of command arguments will treat the extended character
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes match characters ()|& as ordinary characters.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes j. A bug which caused read to fail on a file that was
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes open for read/write with <> when the first operation
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes was print or printf has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes k. When a job is suspended, it is put on the top of
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the job list as required by the POSIX standard.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes l. The value of OPTARG when an option that required
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes an argument but didn't have one was incorrect in the
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes case the the option string began with a :.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes m. A bug which caused the terminal to get into a bad
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg state with some KEYBD traps in vi-mode has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes n. A bug which caused an invalid trap to cause a script
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to terminate, rather than just return an error, has
16b55a35cff91315d261d1baa776138af465c4e4fuankg been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg o. Backreferencing sub-expressions in patterns and replacement
16b55a35cff91315d261d1baa776138af465c4e4fuankg strings now works.
b387b9d37fc71c534f4718777454a8f5a1169017fuankg p. A bug in chmod which caused the -R option to fail has
16b55a35cff91315d261d1baa776138af465c4e4fuankg been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes9. Bugs fixed in 12/28/93c for default OPTIONS
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a. The expansion of "$@" was incorrect when $1 was the null
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes string.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. A bug which could incorrectly report a syntax error in
0b2a6b63977ab27352a0b525bdad1e1982a1c0b1bnicholes a backquoted expression when a $ was preceded by \\
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes c. A bug which prevented the shell from exiting after
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg reporting an error when failing to open a script
0662ed52e814f8f08ef0e09956413a792584eddffuankg has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes d. A bug that could lead to memory corruption when a
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg large here document that required parameter or command
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes substitution was expanded has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes e. A bug that could cause a core dump on some systems
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes after ksh detected an error when reading a function
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes f. A bug which could cause a coprocess to hang when
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg reading from a process that has terminated has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes g. A bug which caused a script to terminate when set -e
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes was on and the first command of and && or || list
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes failed has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes h. A bug with here documents inside $(...) when the delimiter
0662ed52e814f8f08ef0e09956413a792584eddffuankg word is an identifier has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes i. A bug which caused $0 to display the wrong value when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a script was invoked as an argument to the . command
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes and the eval command has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes j. A bug that could cause the built-in sleep to hang
0662ed52e814f8f08ef0e09956413a792584eddffuankg has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes k. A bug introduces in 12/28/93b which caused the backslash
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to be removed when it was followed by digit inside double
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes quotes in some instances has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes l. A bug which could cause a core dump if ksh was invoked with
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes standard input closed has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes m. A bug which could cause a core dump if typeset -A was
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes specified for an existing variable has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes n. Variables that were unset but had attributes such as readonly
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes and export were not listed with readonly, export and typeset.
0662ed52e814f8f08ef0e09956413a792584eddffuankg o. Several problems with signals have been fixed.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg p. A bug which prevented ulimit -t from working has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes Also, a bug in which failed ulimits could cause a core dump
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg has also been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes q. A bug in expansion of the form ${name/#pattern/string} and
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes ${name/%pattern/string} has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes r. A bug which caused read -r on a line that contained only
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg blanks to get a non-null value has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes s. A bug introduced in the 'a' point release in which
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes ${x='\\'} expanded to \ when x was unset has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes t. A bug which prevented a trap on EXIT from being executed
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes when the last command in a script was a function invocation
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes u. A bug which caused an interactive shell ignore input when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes standard error was redirected to a file with exec,
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes and then restored with exec 2>&1 has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes v. An interactive shell turns on monitor mode even when
0b2a6b63977ab27352a0b525bdad1e1982a1c0b1bnicholes standard error has been redirected to a file.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes w. A bug which could cause standard input to be incorrectly
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes positioned for the last command of a script has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes y. A bug in the edit modes which allowed walking back in
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the history file for more than HISTSIZE commands has
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes beed fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes z. A bug which could cause a core dump if variable TMPDIR was
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes changed between two command substitutions has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes aa. A bug which prevented a trap on EXIT from being cleared
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes10. Bugs fixed in 12/28/93d for default OPTIONS
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a. The \ character was not handled correctly in replacement
38a5d7d5966cc1b30d0a1cdac9cea0023eabd6f8fuankg patterns with ${x/pattern/replace}.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes b. A bug with read in which the line did not end with
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a new-line has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes c. A bug in file name generation which sometimes
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes appended a . for filenames that ended in / has
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes d. If a process is waited for after a status has
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes been returned by a previous wait, wait now
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg returns 127.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes e. A bug with hist (fc) -e which prevented a command
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to re-executed after it had been edited has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg f. A bug which prevented quoting from removing the meaning
16b55a35cff91315d261d1baa776138af465c4e4fuankg of unary test operators has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg11. Bugs fixed in 12/28/93e for default OPTIONS
16b55a35cff91315d261d1baa776138af465c4e4fuankg a. Empty command substitutions of the form $() now work.
16b55a35cff91315d261d1baa776138af465c4e4fuankg b. whence -v foo now gives the correct result after calling
16b55a35cff91315d261d1baa776138af465c4e4fuankg builtin -d foo.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes c. A bug in right to left arithmetic assignment for which
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the arithmetic expression (( y = x = 1.5 )) did not
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes yield 1 for y when x was declared typeset -i was fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes d. printf has been fixed to handle format containing \0
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes and/or \0145 correctly. In addition, characters following
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes %b in the format string are no longer displayed when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the operand contains \c.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes e. A bug in printf that could cause the %E format to
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes produce unnormalized results has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg f. A bug which causes some arithmetic expressions to be
16b55a35cff91315d261d1baa776138af465c4e4fuankg incorrectly evaluated as integer expressions rather
16b55a35cff91315d261d1baa776138af465c4e4fuankg that floating point has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg g. Functions defined inside a subshell no longer remain
16b55a35cff91315d261d1baa776138af465c4e4fuankg defined when the subshell completes.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes h. The error message from sh -c ';echo foo' has been
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes corrected.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes i. The format for umask -S has been changed to agree
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes with the specification in the POSIX standard.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg j. A bug that caused side effects in subscript evaluation
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes when tracing was enabled for subscripts using ++ or --
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes k. To conform to the Posix standard getopts has been changed
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes so that the option char is set to ? when it returns with
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a non-zero exit status.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes l. The handling of \} inside ${name...} has been fixed so
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes that the \ quotes the }.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes m. A bug that caused the read builtin to resume execution
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes after processing a trap has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes n. [[ -s file ]] has been fixed so that if file is open
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes by ksh, it is flushed first.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes o. In some cases attributes and sizes for non exported
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes variables weren't being reset before running a script.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes p. The value of TMOUT was affected by changes make to
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes it in a subshell.
8ffac2c334103c0336602aaede650cb578611151fuankg q. The jobs command did not reflect changes make by
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes sending the CONT signal to a command.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes r. The error message for ksh -o unknown was incorrect.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg s. Functions invoked as name=value name, did not use
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes values from the calling scope when evaluating value.
16b55a35cff91315d261d1baa776138af465c4e4fuankg t. A bug in which the shell would reexecute previously
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes executed code when a shell script or coprocess was
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg run in the background has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes u. A bug in which an empty here-document would leave
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg a file descriptor open has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg v. A bug in which $(set -A array ...) would leave a
16b55a35cff91315d261d1baa776138af465c4e4fuankg side effect has been fixed.
16b55a35cff91315d261d1baa776138af465c4e4fuankg w. A discipline function for a global variable defined
16b55a35cff91315d261d1baa776138af465c4e4fuankg within a function defined with the function keyword,
16b55a35cff91315d261d1baa776138af465c4e4fuankg incorrectly created a local variable of the same name
16b55a35cff91315d261d1baa776138af465c4e4fuankg and applied the discipline to it.
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankg12. Bugs fixed in 12/28/93f for default OPTIONS
16b55a35cff91315d261d1baa776138af465c4e4fuankg a. A bug which would cause the secondary prompt to be
16b55a35cff91315d261d1baa776138af465c4e4fuankg displayed when a user entered a literal carriage
16b55a35cff91315d261d1baa776138af465c4e4fuankg return has been fixed.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg b. I bug which caused ksh read -s name to core dump was
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes c. I bug with the expansion of \} and \] inside double
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes quoted strings that also contained variable expansions
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes has been fixed
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes d. Changes in the 'e' point release caused autoload
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes functions invoked from within command substitution
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg to fail. This has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes e. A bug in the processing of here-documents that could
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes prevent variable substitution to occur after $(...) command
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes substitution for long here documents has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes f. A bug caused by a race condition that could cause SIGTERM
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to be ignored by a child process has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes g. A bug which prevented the startup of a coprocess immediately
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes after killing a running coprocess has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes h. ulimit foobar, where foobar is not an arithmetic
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes expression, now gives an error message as it did with ksh88
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes instead of setting the file size limit to 0.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes i. A bug which could cause an interactive shell to terminate when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes the last process of a pipeline was a POSIX function was fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes j. A bug which could cause command substitution of a shell script
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes to core dump has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes k. A security hole was fixed in suid_exec.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg l. Arithmetic functions such as pow() that take more than
0662ed52e814f8f08ef0e09956413a792584eddffuankg one argument, did not work if arguments other than the
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes first contained parenthesized sub-expression.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes m. The error message from a script containing an incomplete
00d1c0c914426a97022d8205a875c48b211001c2fuankg arithmetic expression has been corrected.
00d1c0c914426a97022d8205a875c48b211001c2fuankg n. A bug which caused a core dump on some machines when
00d1c0c914426a97022d8205a875c48b211001c2fuankg the value of a name reference contained a positional
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg parameter and the name reference was not defined inside
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a function has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes o. Arithmetic expressions now correctly handle hexidecimal
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes constants.
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg p. A bug in which integer variables could be expanded
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes with a leading 10# when declared with typeset -i
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes multiple times has been corrected.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes q. A bug in which IFS wasn't correctly restored when
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes set within command substitution has been fixed.
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes r. The _ character is now considered as part of a word
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes with the M-f and M-b emacs directives as it was in ksh88.
0662ed52e814f8f08ef0e09956413a792584eddffuankg
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes13. Bugs fixed in 12/28/93g for default OPTIONS
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes a. A bug in which a name reference could be created to
itself and later cause the shell to get into an infinite
loop has been fixed.
b. A bug in shcomp relating to compound variables was fixed.
c. A bug introduced in 'e' in which leading 0's in -Z
fields caused the value to be treated as octal for arithmetic
evaluation has been fixed.
d. A bug when a name reference with a shorter name than
the variable it references was the subject of a compound
assignment has been fixed.
e. A bug which in which assignment to array variables in
a subshell could effect the parent shell has been
fixed.
f. read name?prompt was putting a 0 byte at the end of the
prompt on standard error.
g. A bug in [[ string1 > string2 ]] when ksh was run with -x
has been fixed.
k. A bug in which the escape character was not processed
correctly inside {...} when brace expansion is enabled
has been fixed, for example {\$foo}.
l. A bug in line continuation in here-documents has been
fixed.
m. The default base when not specified with typeset -i is
10 in accordance with the documentation. Previously,
the value was determined by the first assignment.
n. A parsing bug in which a # preceded alphanumeric
characters inside a command substitution caused
a syntax error to be reported has been fixed.
o. A bug in which a decimal constant represented as 10#ddd
where ddd was more than five digits generated a syntax
error has been fixed.
p. A bug in here document expansion in which ${...} expansions
were split across buffer boundaries has been fixed.
14. Bugs fixed in 12/28/93h for default OPTIONS
a. I bug in shcomp for compilation of unary operators with [[...]]
has been fixed.
b. A bug in which the value of $? was changed when executing
a keyboard trap has been fixed.
c. The handling of SIGCHLD has been changed so that the
trap is not triggered while executing trap commands
to avoid recursive trap calls.
d. I bug in which a local variable in a function declared readonly
would generated an error when the function went out of
scope has been fixed.
e. I bug in which \<new_line> entered from the keyboard
with the KEYBD trap enabled has been fixed.
f. The error message for a misplaced ((, for example print ((3),
was often garbled and has been fixed.
g. I bug in the KEYBD trap in which escape sequences of the form
<ESC>[#~ were not being handled as a unit has been fixed.
h. A bug in which ksh would consider expressions like [[ (a) ]]
as syntax errors has been fixed.
i. A function defined as foo() without a function body
was not reported as a syntax error.
j. A bug in which ksh could run out of file descriptors when
a stream was repeatedly opened with exec and read from
has been fixed.
k. A bug introduced when fixing item n from the 'g' point
release has been fixed.
15. Bugs fixed in 12/28/93i for default OPTIONS
a. A bug in which a script could terminate when getopts
encountered an error when invoked inside a function
has been fixed.
b. When a symbolic link was specified as the name of
the script to invoke by name, the value of $0 was
set to the real file name rather than the link name
in some cases and this has been fixed.
16. Bug fixes for specific non-default option combinations.
a. More signal names have been added for Solaris
b. A bug fixed for the v directive in vi MULTIBYTE has been
fixed.
c. Code to for IFS handling of multibyte characters has
been added.
d. The displaying of multibyte strings in export, readonly,
typeset, and execution traces has been fixed.
e. A bug with type ahead and KEYBOARD traps with the
MULTIBYTE option set has been fixed.
f. The k-shell information abstraction database option, KIA,
has been revamped for the 'e' point release.
g. A bug in brace pattern expansions that caused expressions
such as {foo\,bar,bam} to expand incorrectly have been fixed.
h. On the U/WIN version for Window 95 and Windows NT,
when a directory beginning with a letter followed by
a colon is given to cd, it is assumed to be an absolute
directory.
i. There was a bug in the compile option that does not
use fork() in which the current option settings where
not propagated to sub-shells.
j. A bug in setting .sh.editchar during the KEYBD trap
for the MULTIBYTE option was fixed in release 'h'.
k. A bug in which the precision given as an argument
to printf was not working has been fixed.
17. Other changes to 12/28/93[abcdefghi]
a. A couple of minor changes to make adding built-ins easier.
b. Variables inside functions are now statically scoped.
The previous behavior was never documented.
c. A few changes have been made to the name-value library
that affect built-ins that use disciplines. The
changes allow disciplines to be shared by variables
and should make it possible to add new disciplines
without recompilation.
d. The name-value library interface has undergone significant
change for this revision. See the new nval.3 man page.
e. Builtin functions can take a third argument which is
a void*.
f. The nv_scan() function can restrict the scope of a walk
to the top scope. Starting in 'f', nv_scan() has an
additional pointer argument that is passed to each invoked
function.
g. Starting with release 'f', an empty for list behave like
a for list with null expansions. It produces a warning
message with sh -n.
h. Starting with release 'f' the code has been modified to
work with EBCDIC as well as ASCII.
i. Starting with the release 'g', the name-value pair library
uses the cdt library rather than the hash library.
j. The sh_fun() function now takes third argument which
is an argument list for the invoked discipline function
or built-in.
k. A callback function can be installed which will give
notification of file duplications and file closes.
18. Incompatibilities with 12/28/93 version.
None intentional.