55 passed, 1 ok, 15 known unimplemented, 4 known bugs, 5 failed, 0 skipped
| dash | 2 Length of undefined variable with nounset stdout: stderr: /bin/dash: 2: undef: parameter not set |
| dash | 3 Cannot take length of substring slice stdout: 5stderr: |
| osh | 3 Cannot take length of substring slice [osh status] Expected 1, got 2 stdout: stderr: Line 2 of '<stdin>'
echo ${#v:1:3}
^
Expected } after length expression, got (token id:VOp2_Colon val:":" span_id:8)
---
Line 2 of '<stdin>'
echo ${#v:1:3}
^
Error reading command word
---
Line 0 of '<unknown>'
<no position info for token>
Error parsing AndOr in ParseCommandTerm
---
|
| osh_ALT | 3 Cannot take length of substring slice [osh_ALT status] Expected 1, got 2 stdout: stderr: Line 2 of '<stdin>'
echo ${#v:1:3}
^
Expected } after length expression, got (token id:VOp2_Colon val:":" span_id:8)
---
Line 2 of '<stdin>'
echo ${#v:1:3}
^
Error reading command word
---
Line 0 of '<unknown>'
<no position info for token>
Error parsing AndOr in ParseCommandTerm
---
|
| dash | 4 Pattern replacement stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 5 Global Pattern replacement with / stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 6 Left Anchored Pattern replacement with # stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 7 Right Anchored Pattern replacement with % stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 8 Replace fixed strings stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 9 Replace is longest match stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 10 Replace char class stdout: stderr: /bin/dash: 2: Bad substitution |
| mksh | 10 Replace char class stdout: xx_xx_xx xx_xx_xxstderr: |
| osh | 10 Replace char class [osh stdout] Expected 'yy_yy_yy xx-xx-xx\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Line 0 of '<unknown>' <no position info for token> osh failed: Can't convert glob to regex: '[[:alpha:]]' |
| osh_ALT | 10 Replace char class [osh_ALT stdout] Expected 'yy_yy_yy xx-xx-xx\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Line 0 of '<unknown>' <no position info for token> osh failed: Can't convert glob to regex: '[[:alpha:]]' |
| dash | 11 Pattern replacement ${v/} is not valid stdout: stderr: /bin/dash: 2: Bad substitution |
| bash | 11 Pattern replacement ${v/} is not valid stdout: -abcde- status=0stderr: |
| mksh | 11 Pattern replacement ${v/} is not valid stdout: -abcde- status=0stderr: |
| dash | 12 Pattern replacement ${v//} is not valid stdout: stderr: /bin/dash: 2: Bad substitution |
| bash | 12 Pattern replacement ${v//} is not valid stdout: -a/b/c- status=0stderr: |
| mksh | 12 Pattern replacement ${v//} is not valid stdout: -a/b/c- status=0stderr: |
| dash | 13 ${v/a} is the same as ${v/a/} -- no replacement string stdout: stderr: /bin/dash: 2: Bad substitution |
| dash | 14 String slice stdout: stderr: /bin/dash: 2: Bad substitution |
| osh | 14 String slice [osh stdout] Expected 'bcd\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 448, in <module>
main(sys.argv)
File "bin/osh", line 435, in main
sys.exit(OilMain(argv))
File "bin/osh", line 418, in OilMain
status = OshMain(main_argv)
File "bin/osh", line 379, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in Execute
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 729, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 948, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 603, in _Dispatch
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1108, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1088, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1041, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 935, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 894, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 823, in _EvalBracedVarSub
raise NotImplementedError(op)
NotImplementedError: (Slice
begin:
(ArithWord w:(CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:1 span_id:8))]))
length:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:3 span_id:10))])
)
)
|
| osh_ALT | 14 String slice [osh_ALT stdout] Expected 'bcd\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "/home/andy/git/oil/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/andy/git/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/andy/git/oil/bin/oil.py", line 448, in <module>
main(sys.argv)
File "/home/andy/git/oil/bin/oil.py", line 435, in main
sys.exit(OilMain(argv))
File "/home/andy/git/oil/bin/oil.py", line 418, in OilMain
status = OshMain(main_argv)
File "/home/andy/git/oil/bin/oil.py", line 379, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in Execute
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 729, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 948, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 603, in _Dispatch
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1108, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1088, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1041, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 935, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 894, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 823, in _EvalBracedVarSub
raise NotImplementedError(op)
NotImplementedError: (Slice
begin:
(ArithWord w:(CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:1 span_id:8))]))
length:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:3 span_id:10))])
)
)
|
| dash | 15 Negative string slice stdout: stderr: /bin/dash: 2: Bad substitution |
| osh | 15 Negative string slice [osh stdout] Expected 'def\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 448, in <module>
main(sys.argv)
File "bin/osh", line 435, in main
sys.exit(OilMain(argv))
File "bin/osh", line 418, in OilMain
status = OshMain(main_argv)
File "bin/osh", line 379, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in Execute
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 729, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 948, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 603, in _Dispatch
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1108, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1088, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1041, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 935, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 894, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 823, in _EvalBracedVarSub
raise NotImplementedError(op)
NotImplementedError: (Slice
begin:
(ArithUnary
op_id: Node_UnaryMinus
child:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:4 span_id:10))])
)
)
length:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:3 span_id:12))])
)
)
|
| osh_ALT | 15 Negative string slice [osh_ALT stdout] Expected 'def\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "/home/andy/git/oil/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/andy/git/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/andy/git/oil/bin/oil.py", line 448, in <module>
main(sys.argv)
File "/home/andy/git/oil/bin/oil.py", line 435, in main
sys.exit(OilMain(argv))
File "/home/andy/git/oil/bin/oil.py", line 418, in OilMain
status = OshMain(main_argv)
File "/home/andy/git/oil/bin/oil.py", line 379, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in Execute
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 729, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 948, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 603, in _Dispatch
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1108, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1088, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1041, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 935, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 894, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 823, in _EvalBracedVarSub
raise NotImplementedError(op)
NotImplementedError: (Slice
begin:
(ArithUnary
op_id: Node_UnaryMinus
child:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:4 span_id:10))])
)
)
length:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:3 span_id:12))])
)
)
|
| dash | 16 String slice with math stdout: stderr: /bin/dash: 3: Bad substitution |
| osh | 16 String slice with math [osh stdout] Expected 'def\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 448, in <module>
main(sys.argv)
File "bin/osh", line 435, in main
sys.exit(OilMain(argv))
File "bin/osh", line 418, in OilMain
status = OshMain(main_argv)
File "bin/osh", line 379, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in Execute
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 729, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 948, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 603, in _Dispatch
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1108, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1088, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1041, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 935, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 894, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 823, in _EvalBracedVarSub
raise NotImplementedError(op)
NotImplementedError: (Slice
begin:
(ArithBinary
op_id: Arith_Minus
left:
(ArithBinary
op_id: Arith_Minus
left: (ArithVarRef name:i)
right:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:3 span_id:14))])
)
)
right:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:2 span_id:16))])
)
)
length:
(ArithBinary
op_id: Arith_Plus
left: (ArithVarRef name:i)
right:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:2 span_id:24))])
)
)
)
|
| osh_ALT | 16 String slice with math [osh_ALT stdout] Expected 'def\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "/home/andy/git/oil/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/andy/git/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/andy/git/oil/bin/oil.py", line 448, in <module>
main(sys.argv)
File "/home/andy/git/oil/bin/oil.py", line 435, in main
sys.exit(OilMain(argv))
File "/home/andy/git/oil/bin/oil.py", line 418, in OilMain
status = OshMain(main_argv)
File "/home/andy/git/oil/bin/oil.py", line 379, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in Execute
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 729, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 948, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 919, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 603, in _Dispatch
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1108, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1088, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1041, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 935, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 894, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 823, in _EvalBracedVarSub
raise NotImplementedError(op)
NotImplementedError: (Slice
begin:
(ArithBinary
op_id: Arith_Minus
left:
(ArithBinary
op_id: Arith_Minus
left: (ArithVarRef name:i)
right:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:3 span_id:14))])
)
)
right:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:2 span_id:16))])
)
)
length:
(ArithBinary
op_id: Arith_Plus
left: (ArithVarRef name:i)
right:
(ArithWord
w: (CompoundWord parts:[(LiteralPart token:(token id:Lit_Digits val:2 span_id:24))])
)
)
)
|