Skip to content

Commit b16c91f

Browse files
committed
Release 1.0.3
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.
1 parent 7132603 commit b16c91f

File tree

10 files changed

+56
-23
lines changed

10 files changed

+56
-23
lines changed

ANNOUNCE

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
Announcing: KornShell 93u+m/1.0.0
1+
Announcing: KornShell 93u+m/1.0.3
22
https://github.com/ksh93/ksh
3-
_ _ ___ _____ ___ ___ ___
4-
| | _____| |__ / _ \___ / _ _ _ _ __ ___ / / | / _ \ / _ \
5-
| |/ / __| '_ \ | (_) ||_ \| | | |_| |_| '_ ` _ \ / /| || | | | | | |
6-
| <\__ \ | | | \__, |__) | |_| |_ _| | | | | |/ / | || |_| | |_| |
7-
|_|\_\___/_| |_| /_/____/ \__,_| |_| |_| |_| |_/_/ |_(_)___(_)___/
83

9-
It may have been exactly a decade since the last one, but here it is at last:
10-
a proper new ksh release. :) Many thanks to all contributors for their hard
11-
work! Compared to an unpatched ksh 93u+ 2012-08-01, this release has roughly
12-
a thousand bugs fixed. It incorporates a fair number of enhancements as well.
13-
14-
This being an initial release, not all known bugs have been worked out yet.
15-
Let's hope this release will rekindle interest and attract more bug hunters.
4+
This is the third bugfix release in the ksh 93u+m/1.0 series. Many thanks to
5+
all contributors for their hard work! Compared to an unpatched ksh 93u+
6+
2012-08-01, this release has roughly a thousand bugs fixed. It incorporates
7+
a fair number of enhancements as well.
168

179
### CONTRIBUTORS ###
1810

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

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

45+
### MAIN CHANGES between ksh 93u+m 1.0.2 and 1.0.3 ###
46+
47+
This point release fixes the following:
48+
- An old bug in history expansion (set -H) where any use of the history
49+
comment character caused processing to be aborted as if it were an invalid
50+
history expansion.
51+
- A bug in command line options processing that caused short-form
52+
option equivalents on some built-in commands to be ignored after one use,
53+
e.g., the new read -a equivalent of read -A.
54+
- Ksh freezing or using excessive memory if HISTSIZE is assigned a
55+
pathologically large value.
56+
- A bug that caused ksh in the vi editor mode to crash or produce invalid
57+
completions if ESC = was used at the beginning of a line.
58+
59+
### MAIN CHANGES between ksh 93u+m 1.0.1 and 1.0.2 ###
60+
61+
This bugfix release fixes the interactive shell crashing when one of the
62+
predefined aliases (currently 'history' and 'r') is redefined, whether from
63+
a profile/kshrc script or manually. This crash occurred in two scenarios:
64+
1. when redefining and then unsetting a predefined alias;
65+
2. when redefining a predefined alias and then executing a shell script that
66+
does not begin with a #! path.
67+
68+
### MAIN CHANGES between ksh 93u+m 1.0.0 and 1.0.1 ###
69+
70+
This is an urgent bugfix release that removes an incorrect exec
71+
optimization that was capable of terminating the execution of scripts
72+
prematurely in certain corner cases. It is known to make the build scripts
73+
of GNU binutils produce corrupted results if ksh is used as /bin/sh.
74+
See https://github.com/ksh93/ksh/issues/507 for more information.
75+
5376
### MAIN CHANGES between ksh 93u+ 2012-08-01 and 93u+m/1.0.0 ###
5477

5578
Roughly a thousand bugs have been fixed, including many serious/critical

COPYRIGHT

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ ksh 93u+m general copyright notice
2020
# Anuradha Weeraman <anuradha@debian.org> #
2121
# Lev Kujawski <int21h@mailbox.org> #
2222
# atheik <14833674+atheik@users.noreply.github.com> #
23+
# K. Eugene Carlson <kvngncrlsn@gmail.com> #
2324
# Ryan Schmidt <ryandesign@macports.org> #
2425
# Chase <nicetrynsa@protonmail.ch> #
2526
# Vincent Mihalkovic <vmihalko@redhat.com> #
2627
# Trey Valenta <t@trey.net> #
2728
# Sterling Jensen <5555776+sterlingjensen@users.noreply.github.com> #
2829
# Marc Wilson <posguy99@gmail.com> #
29-
# K. Eugene Carlson <kvngncrlsn@gmail.com> #
3030
# Harald van Dijk <harald@gigawatt.nl> #
3131
# Govind Kamat <govind_kamat@yahoo.com> #
3232
# Andy Fiddaman <andy@omniosce.org> #
@@ -46,6 +46,7 @@ ksh 93u+m general copyright notice
4646
# Solaris ksh 93u+ patch authors #
4747
# Debian ksh 93u+ patch authors #
4848
# Apple ksh 93u+ patch authors #
49+
# Graphviz maintainers (libast, sfio) #
4950
# #
5051
########################################################################
5152

NEWS

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

5+
2022-08-25:
6+
7+
- Release 1.0.3.
8+
9+
- In the vi line editor, a bug was fixed that caused erratic behaviour after
10+
using the 0 or ^ commands when already at the beginning of the command line.
11+
512
2022-08-24:
613

714
- Fixed a bug that caused ksh in the vi editor mode to crash or produce

TODO

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The following bugs and issues are known for ksh 93u+m 1.0.0-rc1:
1+
The following bugs and issues are known for ksh 93u+m 1.0.3:
22

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

39-
namespaces don't work properly when defined within functions
40-
https://github.com/ksh93/ksh/issues/325
41-
4239
Associative arrays of various types fail to be unset
4340
https://github.com/ksh93/ksh/issues/345
4441

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

6966
Shell quoting within bracket patterns has no effect
7067
https://github.com/ksh93/ksh/issues/488
68+
69+
OPTIND not initialised correctly on Solaris/SPARC when compiled with gcc
70+
https://github.com/ksh93/ksh/issues/515

src/cmd/INIT/README-mamake.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ by appending them to the `make` or `done` command:
9090
By convention, a virtual rule named `all` makes everything,
9191
and a virtual rule named `install` performs installation.
9292

93-
Unrecognized attributes produce a warning and are then ignored.
94-
9593
### Referencing previously defined rules ###
9694

9795
`prev` *rule* [ *attribute* ... ]

src/cmd/ksh93/bltins/whence.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* *
1313
* David Korn <dgk@research.att.com> *
1414
* Martijn Dekker <martijn@inlv.org> *
15+
* Johnothan King <johnothanking@protonmail.com> *
1516
* *
1617
***********************************************************************/
1718
/*

src/cmd/ksh93/edit/emacs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* David Korn <dgk@research.att.com> *
1414
* Martijn Dekker <martijn@inlv.org> *
1515
* Johnothan King <johnothanking@protonmail.com> *
16+
* K. Eugene Carlson <kvngncrlsn@gmail.com> *
1617
* *
1718
***********************************************************************/
1819
/* Original version by Michael T. Veach

src/cmd/ksh93/include/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include <releaseflags.h>
1818

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

2424
/* Scripts sometimes field-split ${.sh.version}, so don't change amount of whitespace. */

src/lib/libcmd/cut.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Glenn Fowler <gsf@research.att.com> *
1414
* David Korn <dgk@research.att.com> *
1515
* Martijn Dekker <martijn@inlv.org> *
16+
* Johnothan King <johnothanking@protonmail.com> *
1617
* *
1718
***********************************************************************/
1819
/*

src/lib/libcmd/wc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Glenn Fowler <gsf@research.att.com> *
1414
* David Korn <dgk@research.att.com> *
1515
* Martijn Dekker <martijn@inlv.org> *
16+
* Johnothan King <johnothanking@protonmail.com> *
1617
* *
1718
***********************************************************************/
1819
/*

0 commit comments

Comments
 (0)