Results for var-sub.test.sh

casedashbashmkshoshdescription
0pass BUG pass pass Braced block inside ${}
details
1ok pass pass pass Filename redirect with "$@"
details
2ok pass ok FAIL Filename redirect with split word
detailsdetailsdetails
3pass ok ok FAIL Descriptor redirect to bad "$@"
detailsdetailsdetails
4pass pass ok pass Here doc with bad "$@" delimiter
details

11 passed, 6 ok, 0 known unimplemented, 1 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

bash0 Braced block inside ${}

stdout:
stderr: 
/bin/bash: line 1: syntax error near unexpected token `)'
/bin/bash: line 1: `echo ${foo:-$({ which ls; })}'
dash1 Filename redirect with "$@"

stdout:
stderr: 
/bin/dash: 2: cannot create _tmp/var-sub1 _tmp/var-sub2: Directory nonexistent
dash2 Filename redirect with split word

stdout:
hi
stderr:
mksh2 Filename redirect with split word

stdout:
hi
stderr:
rm: cannot remove '_tmp/1 2': No such file or directory
osh2 Filename redirect with split word

[osh status] Expected 1, got 0

stdout:
hi
stderr:
bash3 Descriptor redirect to bad "$@"

stdout:
stderr: 
/bin/bash: line 2: "$@": ambiguous redirect
mksh3 Descriptor redirect to bad "$@"

stdout:
stderr: 
/bin/mksh: <stdin>[2]: >&'2 3 c d' : illegal file descriptor name
osh3 Descriptor redirect to bad "$@"

[osh status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 388, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 378, in main
    return OshMain(main_argv)
  File "bin/osh", line 337, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 1111, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 974, in _Execute
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 864, in _Execute
    redirects = self._EvalRedirects(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 771, in _EvalRedirects
    ok, val = self.ev.EvalWordToString(n.arg_word)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 907, in EvalWordToString
    self._AddErrorContext("Only string parts are allowed", word=word)
TypeError: _AddErrorContext() got an unexpected keyword argument 'word'
mksh4 Here doc with bad "$@" delimiter

stdout:
stderr: 
/bin/mksh: <stdin>[7]: here document '$@' unclosed