Permalink
Please sign in to comment.
Browse files
Relax evaluation of "$@" to string, but add set -o strict-array.
This is the first pass -- there is stlil a failing test which involves "decay_array" in word_eval.py. Positive fallout: - Two more dbracket spec tests pass. (But strict-array will disallow this behavior.) - Fix to return status 1 if you redirect to "$@", '' or a string that doesn't look like a file descriptor. (Whether it aborts depends on set -e.) This also fixes a few spec test failures. Addresses issue #61. Alpine uses local _quiet="$@" (which might be a typo honestly, because elsewhere they use local _quiet="$1".)
- Loading branch information...
Showing
with
77 additions
and 30 deletions.
- +8 −8 core/cmd_exec.py
- +8 −3 core/state.py
- +16 −11 core/word_eval.py
- +33 −4 spec/array-compat.test.sh
- +10 −2 spec/dbracket.test.sh
- +2 −2 test/spec.sh
0 comments on commit
e9e8bf4