1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 23:14:14 +00:00
cde/src/cmd/ksh93/tests
Johnothan King fc2d5a6019
test foo =~ foo should fail with exit status 2 (#245)
When test is passed the '=~' operator, it will silently fail with
exit status 1:
    $ test foo =~ foo; echo $?
    1
This bug is caused by test_binop reaching the 'NOTREACHED' area of
code. The bugfix was adapted from ksh2020:
https://github.com/att/ast/issues/1152

src/cmd/ksh93/bltins/test.c: test_binop():
- Error out with a message suggesting usage of '[[ ... ]]' if '=~'
  is passed to the test builtin.
- Special-case TEST_END (']]') as that is not really an operator.

Co-authored-by: Martijn Dekker <martijn@inlv.org>
2021-03-27 21:51:16 +00:00
..
_common Fix a few regression test failures (#222) 2021-03-14 21:32:04 +00:00
alias.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
append.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
arith.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
arrays.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
arrays2.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
attributes.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
basic.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
bracket.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
builtins.sh test foo =~ foo should fail with exit status 2 (#245) 2021-03-27 21:51:16 +00:00
case.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
comvar.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
comvario.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
coprocess.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
cubetype.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
enum.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
exit.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
expand.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
functions.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
glob.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
grep.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
heredoc.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
io.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
jobs.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
leaks.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
locale.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
math.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
nameref.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
namespace.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
options.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
path.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
pointtype.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
pty.sh tests/pty.sh: fixes for testing with/without SHOPT_ESH/SHOPT_VSH 2021-03-21 06:39:32 +00:00
quoting.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
quoting2.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
readcsv.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
recttype.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
restricted.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
return.sh Save $? when discipline triggered without command (#226) 2021-03-16 16:13:13 +00:00
select.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
shtests shtests: make aliases work again for shcomp tests (re: aed5c6d7) 2021-03-23 03:49:32 +00:00
sigchld.sh tests/sigchld.sh: try to fix intermittent CI fail (re: 712261c8) 2021-03-25 02:47:17 +00:00
signal.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
statics.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
subshell.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
substring.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
tilde.sh Allow proper tilde expansion overrides (#225) 2021-03-17 21:07:14 +00:00
timetype.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
treemove.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
types.sh Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
variables.sh Allow proper tilde expansion overrides (#225) 2021-03-17 21:07:14 +00:00
vartree1.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00
vartree2.sh ...and now make it work with shcomp (re: aed5c6d7) 2021-03-13 19:27:15 +00:00