Skip to content

Commit 3a25aa0

Browse files
committed
Release 93u+m/1.0.0
_ _ ___ _____ ___ ___ ___ | | _____| |__ / _ \___ / _ _ _ _ __ ___ / / | / _ \ / _ \ | |/ / __| '_ \ | (_) ||_ \| | | |_| |_| '_ ` _ \ / /| || | | | | | | | <\__ \ | | | \__, |__) | |_| |_ _| | | | | |/ / | || |_| | |_| | |_|\_\___/_| |_| /_/____/ \__,_| |_| |_| |_| |_/_/ |_(_)___(_)___/ It may have taken exactly a decade, but here we are... a proper new ksh release. :) Many thanks to all contributors for their hard work! Compared to an unpatched 93u+, this release has roughly a thousand bugs fixed. It incorporates a fair number of enhancements as well. Not all known bugs have been worked out yet; see the TODO file. Let's hope this release will rekindle interest and attract more bug hunters. This commit also makes some very minor fixes in comments. Notable: src/cmd/ksh93/sh/arith.c: sh_strnum(): - Update a security-related comment. As of b48e5b3, evaluating untrusted arithmetic expressions from the environment should no longer cause CVE-2019-14868. But let's keep disallowing it anyway. Resolves: #491
1 parent f03e672 commit 3a25aa0

File tree

7 files changed

+138
-234
lines changed

7 files changed

+138
-234
lines changed

ANNOUNCE

Lines changed: 119 additions & 222 deletions
Large diffs are not rendered by default.

COPYRIGHT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ ast package general copyright notice
8888
# Jeff Korn <@google.com> #
8989
# Kathleen Fisher <kfisher@research.att.com> #
9090
# Ken Church <@microsoft.com> #
91-
# Brian Kernigham <bwk@research.bell-labs.com> #
91+
# Brian Kernighan <bwk@research.bell-labs.com> #
9292
# Dennis Ritchie <dmr@research.bell-labs.com> #
9393
# Doug McIlroy <doug@research.bell-labs.com> #
9494
# Eduardo Krell <ekrell@adexus.cl> #

NEWS

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
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
3+
Uppercase BUG_* IDs are shell bug IDs as used by the Modernish shell library.
34

4-
Any uppercase BUG_* names are modernish shell bug IDs.
5+
2022-08-01:
6+
_ _ ___ _____ ___ ___ ___
7+
| | _____| |__ / _ \___ / _ _ _ _ __ ___ / / | / _ \ / _ \
8+
| |/ / __| '_ \ | (_) ||_ \| | | |_| |_| '_ ` _ \ / /| || | | | | | |
9+
| <\__ \ | | | \__, |__) | |_| |_ _| | | | | |/ / | || |_| | |_| |
10+
|_|\_\___/_| |_| /_/____/ \__,_| |_| |_| |_| |_/_/ |_(_)___(_)___/
11+
12+
- Exactly ten years after ksh 93u+ 2012-08-01, we now have a new ksh release.
13+
Many thanks to all the direct and indirect contributors for their hard work!
514

615
2022-07-28:
716

@@ -2128,3 +2137,7 @@ Any uppercase BUG_* names are modernish shell bug IDs.
21282137
for reading and writing, you now need '1<>'.
21292138
Ref.: https://github.com/att/ast/issues/75
21302139
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_07
2140+
2141+
2020-05-12:
2142+
2143+
- ksh development rebooted based on 93u+ 2012-08-01.

TODO

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,5 @@ https://github.com/ksh93/ksh/issues/460
6666
$LINENO incorrect after compound assignment
6767
https://github.com/ksh93/ksh/issues/484
6868

69-
Tab completion can cause vi mode to switch to "control"
70-
https://github.com/ksh93/ksh/issues/485
71-
7269
Shell quoting within bracket patterns has no effect
7370
https://github.com/ksh93/ksh/issues/488
74-
75-
"$*" does pattern matching if the first char of $IFS is a wildcard
76-
https://github.com/ksh93/ksh/issues/489

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.0-rc.6" /* semantic version number: https://semver.org */
21-
#define SH_RELEASE_DATE "2022-07-31" /* must be in this format for $((.sh.version)) */
20+
#define SH_RELEASE_SVER "1.0.0" /* semantic version number: https://semver.org */
21+
#define SH_RELEASE_DATE "2022-08-01" /* 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/cmd/ksh93/sh/arith.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ Sfdouble_t sh_strnum(register const char *str, char** ptr, int mode)
551551
/*
552552
* Initializing means importing untrusted env vars. The string does not appear to be
553553
* a recognized numeric literal, so give up. We can't safely call arith_strval(), because
554-
* that allows arbitrary expressions, causing security vulnerability CVE-2019-14868.
554+
* that allows arbitrary expressions, which could be a security vulnerability.
555555
*/
556556
d = 0.0;
557557
else

src/cmd/ksh93/sh/streval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ Arith_t *arith_compile(const char *string,char **last,Sfdouble_t(*fun)(const cha
928928
}
929929

930930
/*
931-
* evaluate an integer arithmetic expression in s
931+
* evaluate an arithmetic expression in s
932932
*
933933
* (Sfdouble_t)(*convert)(char** end, struct lval* string, int type, Sfdouble_t value)
934934
* is a user supplied conversion routine that is called when unknown

0 commit comments

Comments
 (0)