Results for command-parsing.test.sh

casedashbashmkshoshosh_ALTdescription
0pass ok pass ok ok Prefix env on assignment
detailsdetailsdetails
1pass pass pass ok ok Redirect on assignment
detailsdetails
2pass pass pass ok ok Prefix env on control flow
detailsdetails
3pass pass pass ok ok Redirect on control flow
detailsdetails

11 passed, 9 ok, 0 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

bash0 Prefix env on assignment

stdout:
var
stderr:
osh0 Prefix env on assignment

stdout:
stderr: 
Line 2 of '<stdin>'
    E=env local v=var
      ^~~
Invalid prefix bindings in assignment: [('E', <assign_op Equal 1>, (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:env span_id:8))]), 7)]
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh_ALT0 Prefix env on assignment

stdout:
stderr: 
Line 2 of '<stdin>'
    E=env local v=var
      ^~~
Invalid prefix bindings in assignment: [('E', <assign_op Equal 1>, (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:env span_id:8))]), 7)]
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh1 Redirect on assignment

stdout:
stderr: 
Line 2 of '<stdin>'
    local E=env > _tmp/r.txt
    ^~~~~
Got redirects in assignment
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh_ALT1 Redirect on assignment

stdout:
stderr: 
Line 2 of '<stdin>'
    local E=env > _tmp/r.txt
    ^~~~~
Got redirects in assignment
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh2 Prefix env on control flow

stdout:
stderr: 
Line 3 of '<stdin>'
    E=env break
      ^~~
Invalid prefix bindings in control flow: [('E', <assign_op Equal 1>, (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:env span_id:22))]), 21)]
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh_ALT2 Prefix env on control flow

stdout:
stderr: 
Line 3 of '<stdin>'
    E=env break
      ^~~
Invalid prefix bindings in control flow: [('E', <assign_op Equal 1>, (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:env span_id:22))]), 21)]
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh3 Redirect on control flow

stdout:
stderr: 
Line 0 of '<unknown>'
  <no position info for token>
Got redirects in control flow: [(Redir
  op_id: Redir_Great
  fd: -1
  arg_word: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:_tmp/r.txt span_id:26))])
  spids: [24]
)]
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh_ALT3 Redirect on control flow

stdout:
stderr: 
Line 0 of '<unknown>'
  <no position info for token>
Got redirects in control flow: [(Redir
  op_id: Redir_Great
  fd: -1
  arg_word: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Chars val:_tmp/r.txt span_id:26))])
  spids: [24]
)]
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---