Fix some bugs in the regression tests and add more regression tests #295
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
src/cmd/ksh93/tests/{basic.sh,builtins.sh,shtests}:
ulimit
builtin to silence irrelevant errors in the regression tests (these errors may occur when a command such asulimit -t 4
is run before the regression tests).getconf
regression tests.src/cmd/ksh93/tests/{arrays,io,variables}.sh:
Regression appending to an indexed array overwrites arr[-1] if arr[0] is unset att/ast#23
Reading file through command substitution fails att/ast#203
Ksh's .sh.file contains garbage after returning from "sourcing" another file. att/ast#472
Something is wrong with
pathdev
and thuspathcanon()
att/ast#492src/cmd/ksh93/tests/{basic,pty}.sh:
ksh dumps function body to stdout and freezes when eval'ing a function definition att/ast#1160
Tab completion error when expanding ${.sh} att/ast#1461
[ -t 1 ]
in non-forking command substitutions caused[ -t 1 ]
to break in non-comsub virtual subshells (when used in interactive shells). Reproducer (which this pull request adds to the regression tests):