Skip to content

Commit

Permalink
Release 1.0.3
Browse files Browse the repository at this point in the history
This point release mainly fixes the following:
- A bug in history expansion (set -H) where any use of the history
  comment character caused processing to be aborted as if it were
  an invalid history expansion. Affected e.g. 'echo ${#v}'.
- A bug in command line options processing that caused short-form
  option equivalents on some built-in commands to be ignored after
  one use, e.g., the new read -a equivalent of read -A.
- Ksh freezing or using excessive memory if HISTSIZE is assigned a
  pathologically large value.
- A bug that caused ksh in the vi editor mode to crash or produce
  invalid completions if ESC = was used at the beginning of a line.
  • Loading branch information
McDutchie committed Aug 25, 2022
1 parent 7132603 commit b16c91f
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 23 deletions.
51 changes: 37 additions & 14 deletions ANNOUNCE
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
Announcing: KornShell 93u+m/1.0.0
Announcing: KornShell 93u+m/1.0.3
https://github.com/ksh93/ksh
_ _ ___ _____ ___ ___ ___
| | _____| |__ / _ \___ / _ _ _ _ __ ___ / / | / _ \ / _ \
| |/ / __| '_ \ | (_) ||_ \| | | |_| |_| '_ ` _ \ / /| || | | | | | |
| <\__ \ | | | \__, |__) | |_| |_ _| | | | | |/ / | || |_| | |_| |
|_|\_\___/_| |_| /_/____/ \__,_| |_| |_| |_| |_/_/ |_(_)___(_)___/

It may have been exactly a decade since the last one, but here it is at last:
a proper new ksh release. :) Many thanks to all contributors for their hard
work! Compared to an unpatched ksh 93u+ 2012-08-01, this release has roughly
a thousand bugs fixed. It incorporates a fair number of enhancements as well.

This being an initial release, not all known bugs have been worked out yet.
Let's hope this release will rekindle interest and attract more bug hunters.
This is the third bugfix release in the ksh 93u+m/1.0 series. Many thanks to
all contributors for their hard work! Compared to an unpatched ksh 93u+
2012-08-01, this release has roughly a thousand bugs fixed. It incorporates
a fair number of enhancements as well.

### CONTRIBUTORS ###

Expand All @@ -27,7 +19,7 @@ Also includes backported contributions by: David Korn, Glenn Fowler,
Lefteris Koutsofios, Siteshwar Vashisht, Kurtis Rader, Roland Mainz,
Finnbarr P. Murphy, Lijo George, OpenSUSE ksh 93u+ patch authors, Red Hat
ksh 93u+ path authors, Solaris ksh 93u+ patch authors, Debian ksh 93u+
patch authors, Apple ksh 93u+ patch authors
patch authors, Apple ksh 93u+ patch authors, Graphviz maintainers

Many fixes have also been backported from the AT&T 93v- beta as well as
the former ksh2020 project lead by Kurtis Rader and Siteshwar Vashisht;
Expand All @@ -50,6 +42,37 @@ To get involved in development, read the brief policy information in
README.md and then jump right in with a pull request or email a patch.
See the TODO file in the top-level directory for a to-do list.

### MAIN CHANGES between ksh 93u+m 1.0.2 and 1.0.3 ###

This point release fixes the following:
- An old bug in history expansion (set -H) where any use of the history
comment character caused processing to be aborted as if it were an invalid
history expansion.
- A bug in command line options processing that caused short-form
option equivalents on some built-in commands to be ignored after one use,
e.g., the new read -a equivalent of read -A.
- Ksh freezing or using excessive memory if HISTSIZE is assigned a
pathologically large value.
- A bug that caused ksh in the vi editor mode to crash or produce invalid
completions if ESC = was used at the beginning of a line.

### MAIN CHANGES between ksh 93u+m 1.0.1 and 1.0.2 ###

This bugfix release fixes the interactive shell crashing when one of the
predefined aliases (currently 'history' and 'r') is redefined, whether from
a profile/kshrc script or manually. This crash occurred in two scenarios:
1. when redefining and then unsetting a predefined alias;
2. when redefining a predefined alias and then executing a shell script that
does not begin with a #! path.

### MAIN CHANGES between ksh 93u+m 1.0.0 and 1.0.1 ###

This is an urgent bugfix release that removes an incorrect exec
optimization that was capable of terminating the execution of scripts
prematurely in certain corner cases. It is known to make the build scripts
of GNU binutils produce corrupted results if ksh is used as /bin/sh.
See https://github.com/ksh93/ksh/issues/507 for more information.

### MAIN CHANGES between ksh 93u+ 2012-08-01 and 93u+m/1.0.0 ###

Roughly a thousand bugs have been fixed, including many serious/critical
Expand Down
3 changes: 2 additions & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ ksh 93u+m general copyright notice
# Anuradha Weeraman <[email protected]> #
# Lev Kujawski <[email protected]> #
# atheik <[email protected]> #
# K. Eugene Carlson <[email protected]> #
# Ryan Schmidt <[email protected]> #
# Chase <[email protected]> #
# Vincent Mihalkovic <[email protected]> #
# Trey Valenta <[email protected]> #
# Sterling Jensen <[email protected]> #
# Marc Wilson <[email protected]> #
# K. Eugene Carlson <[email protected]> #
# Harald van Dijk <[email protected]> #
# Govind Kamat <[email protected]> #
# Andy Fiddaman <[email protected]> #
Expand All @@ -46,6 +46,7 @@ ksh 93u+m general copyright notice
# Solaris ksh 93u+ patch authors #
# Debian ksh 93u+ patch authors #
# Apple ksh 93u+ patch authors #
# Graphviz maintainers (libast, sfio) #
# #
########################################################################

Expand Down
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ This documents significant changes in the 1.0 branch of ksh 93u+m.
For full details, see the git log at: https://github.com/ksh93/ksh/tree/1.0
Uppercase BUG_* IDs are shell bug IDs as used by the Modernish shell library.

2022-08-25:

- Release 1.0.3.

- In the vi line editor, a bug was fixed that caused erratic behaviour after
using the 0 or ^ commands when already at the beginning of the command line.

2022-08-24:

- Fixed a bug that caused ksh in the vi editor mode to crash or produce
Expand Down
8 changes: 4 additions & 4 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following bugs and issues are known for ksh 93u+m 1.0.0-rc1:
The following bugs and issues are known for ksh 93u+m 1.0.3:

Memory leak when initialising associative array in subshell
https://github.com/ksh93/ksh/issues/94
Expand Down Expand Up @@ -36,9 +36,6 @@ https://github.com/ksh93/ksh/issues/313
bug in printf when %b and %x$ are used in same format
https://github.com/ksh93/ksh/issues/324

namespaces don't work properly when defined within functions
https://github.com/ksh93/ksh/issues/325

Associative arrays of various types fail to be unset
https://github.com/ksh93/ksh/issues/345

Expand Down Expand Up @@ -68,3 +65,6 @@ https://github.com/ksh93/ksh/issues/484

Shell quoting within bracket patterns has no effect
https://github.com/ksh93/ksh/issues/488

OPTIND not initialised correctly on Solaris/SPARC when compiled with gcc
https://github.com/ksh93/ksh/issues/515
2 changes: 0 additions & 2 deletions src/cmd/INIT/README-mamake.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ by appending them to the `make` or `done` command:
By convention, a virtual rule named `all` makes everything,
and a virtual rule named `install` performs installation.

Unrecognized attributes produce a warning and are then ignored.

### Referencing previously defined rules ###

`prev` *rule* [ *attribute* ... ]
Expand Down
1 change: 1 addition & 0 deletions src/cmd/ksh93/bltins/whence.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* *
* David Korn <[email protected]> *
* Martijn Dekker <[email protected]> *
* Johnothan King <[email protected]> *
* *
***********************************************************************/
/*
Expand Down
1 change: 1 addition & 0 deletions src/cmd/ksh93/edit/emacs.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* David Korn <[email protected]> *
* Martijn Dekker <[email protected]> *
* Johnothan King <[email protected]> *
* K. Eugene Carlson <[email protected]> *
* *
***********************************************************************/
/* Original version by Michael T. Veach
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/ksh93/include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <releaseflags.h>

#define SH_RELEASE_FORK "93u+m" /* only change if you develop a new ksh93 fork */
#define SH_RELEASE_SVER "1.0.3-alpha" /* semantic version number: https://semver.org */
#define SH_RELEASE_DATE "2022-08-24" /* must be in this format for $((.sh.version)) */
#define SH_RELEASE_SVER "1.0.3" /* semantic version number: https://semver.org */
#define SH_RELEASE_DATE "2022-08-25" /* must be in this format for $((.sh.version)) */
#define SH_RELEASE_CPYR "(c) 2020-2022 Contributors to ksh " SH_RELEASE_FORK

/* Scripts sometimes field-split ${.sh.version}, so don't change amount of whitespace. */
Expand Down
1 change: 1 addition & 0 deletions src/lib/libcmd/cut.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Glenn Fowler <[email protected]> *
* David Korn <[email protected]> *
* Martijn Dekker <[email protected]> *
* Johnothan King <[email protected]> *
* *
***********************************************************************/
/*
Expand Down
1 change: 1 addition & 0 deletions src/lib/libcmd/wc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Glenn Fowler <[email protected]> *
* David Korn <[email protected]> *
* Martijn Dekker <[email protected]> *
* Johnothan King <[email protected]> *
* *
***********************************************************************/
/*
Expand Down

0 comments on commit b16c91f

Please sign in to comment.