Results for posix.test.sh

casedashbashmkshoshdescription
0pass pass pass pass Empty for loop is allowed
1pass pass pass pass Empty for loop without in. Do can be on the same line I guess.
2pass pass pass pass Empty case statement
3pass pass pass FAIL Last case without ;;
details
4pass pass pass FAIL Only case without ;;
details
5pass pass pass FAIL Case with optional (
details
6pass pass ok pass Empty action for case is syntax error
details
7pass pass pass pass Empty action is allowed for last case
8pass pass pass FAIL Case with | pattern
details
9pass pass ok pass Bare semi-colon not allowed
details
10pass pass pass pass Command substitution in default
11pass pass pass pass Arithmetic expansion
12pass pass pass pass Newlines in compound lists
13pass pass pass pass Multiple here docs on one line
14pass pass pass pass cat here doc; echo; cat here doc

54 passed, 2 ok, 0 known unimplemented, 0 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh3 Last case without ;;

[osh stdout] Expected b'A\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 857, in Execute
    status, cflow = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 755, in _Execute
    status, cflow = self._Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute
    raise NotImplementedError
NotImplementedError
osh4 Only case without ;;

[osh stdout] Expected b'A\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 857, in Execute
    status, cflow = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 755, in _Execute
    status, cflow = self._Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute
    raise NotImplementedError
NotImplementedError
osh5 Case with optional (

[osh stdout] Expected b'A\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 857, in Execute
    status, cflow = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 755, in _Execute
    status, cflow = self._Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute
    raise NotImplementedError
NotImplementedError
mksh6 Empty action for case is syntax error

stdout:
stderr: 
/bin/mksh: <stdin>[4]: syntax error: ')' unexpected
osh8 Case with | pattern

[osh stdout] Expected b'A\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 857, in Execute
    status, cflow = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 755, in _Execute
    status, cflow = self._Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute
    raise NotImplementedError
NotImplementedError
mksh9 Bare semi-colon not allowed

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: ';' unexpected