1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

Fix goof in regression test (re: c8147306)

This commit is contained in:
Martijn Dekker 2021-11-14 12:30:49 +01:00
parent c81473061a
commit 802136a6ad
3 changed files with 22 additions and 11 deletions

View file

@ -1,13 +1,11 @@
Announcing: KornShell 93u+m 1.0.0-beta.1
Announcing: KornShell 93u+m 1.0.0-beta.2
https://github.com/ksh93/ksh
In May 2020, when every KornShell (ksh93) development project was
abandoned, development was rebooted in a new fork based on the last
stable AT&T version: ksh 93u+. Now, one year and hundreds of bug fixes
later, the first beta version is ready, and KornShell lives again. This
new fork is called ksh 93u+m as a permanent nod to its origin; a standard
semantic version number is added starting at 1.0.0-beta.1. Please test
the beta and report any bugs you find, or help us fix known bugs.
stable AT&T version: ksh 93u+. This new fork is called ksh 93u+m as a
permanent nod to its origin. We're restarting it at version 1.0. Please test
this second beta and report any bugs you find, or help us fix known bugs.
Main developers: Martijn Dekker, Johnothan King, hyenias
@ -21,9 +19,6 @@ Please download the source code tarball from our GitHub releases page:
https://github.com/ksh93/ksh/releases
To build, follow the instructions in README.md or src/cmd/ksh93/README.
Hopefully, OS/distro packagers will make ksh 93u+m packages available soon.
If you would like to have a binary for your OS from us, ask and we'll try
to build one and add it to the releases page.
HOW TO GET INVOLVED
@ -33,6 +28,23 @@ 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 SINCE KSH 93U+M 1.0.0-BETA.1
- Various fixes to the test/[ built-in command. It now supports all the same
operators as [[ (including =~, \<, \>) except for the different 'and'/'or'
operators. Note: test/[ remains deprecated due to its unfixable pitfalls.
- Fixed a bug that could corrupt output if standard output is closed upon
initializing the shell.
- Fixed a bug in the [[ compound command: the '!' logical negation operator
now correctly negates another '!', e.g., [[ ! ! 1 -eq 1 ]] now returns
0/true. Note that this has always been the case for 'test'/'['.
- Fixed SHLVL so that replacing ksh by itself (exec ksh) will not increase it.
- Miscellaneous bugfixes.
MAIN CHANGES SINCE KSH 93U+ 2012-08-01
Hundreds of bugs have been fixed, including many serious/critical bugs.

View file

@ -73,7 +73,6 @@ extern int b_enum(int, char*[],Shbltin_t*);
extern int b_exec(int, char*[],Shbltin_t*);
extern int b_eval(int, char*[],Shbltin_t*);
extern int b_return(int, char*[],Shbltin_t*);
extern int B_login(int, char*[],Shbltin_t*);
extern int b_true(int, char*[],Shbltin_t*);
extern int b_false(int, char*[],Shbltin_t*);
extern int b_readonly(int, char*[],Shbltin_t*);

View file

@ -440,7 +440,7 @@ fi
[ foo \< bar ] 2>/dev/null
(($?==1)) || err_exit '[ foo \< bar ] not working'
[ foo \> bar ] 2>/dev/null
(($?==1)) || err_exit '[ foo \> bar ] not working'
(($?==0)) || err_exit '[ foo \> bar ] not working'
# as of 2021-11-13, test also supports =~
[ att_ =~ '(att|cus)_.*' ] 2>/dev/null || err_exit 'test/[: =~ ERE not working'