Results for var-op-bash.test.sh

statusoshosh_.pyosh_.cc
pass 771
FAIL 228
total999
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL Lower Case with , and ,,
details
1pass pass FAIL Upper Case with ^ and ^^
details
2FAIL FAIL FAIL Lower Case with constant string (VERY WEIRD)
detailsdetailsdetails
3FAIL FAIL FAIL Lower Case glob
detailsdetailsdetails
4pass pass FAIL ${x@Q}
details
5pass pass FAIL ${!prefix@} ${!prefix*} yields sorted array of var names
details
6pass pass FAIL ${!prefix@} matches var name (regression)
details
7pass pass FAIL ${var@a} for attributes
details
8pass pass pass ${var@a} error conditions
15 passed, 0 OK, 0 not implemented, 0 BUG, 12 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh_.cc0 Lower Case with , and ,,

[osh_.cc stdout] Expected 'aBC DEF\nabc def\nempty=\nempty=\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:319: Str *Str::lower(): Assertion `0' failed.
osh_.cc1 Upper Case with ^ and ^^

[osh_.cc stdout] Expected 'Abc def\nABC DEF\nempty=\nempty=\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:315: Str *Str::upper(): Assertion `0' failed.
osh2 Lower Case with constant string (VERY WEIRD)

[osh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  echo ${x,A}
  ^~~~
[ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument
osh_.py2 Lower Case with constant string (VERY WEIRD)

[osh_.py stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  echo ${x,A}
  ^~~~
[ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument
osh_.cc2 Lower Case with constant string (VERY WEIRD)

[osh_.cc stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  echo ${x,A}
  ^~~~
[ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument
osh3 Lower Case glob

[osh stdout] Expected 'ABC DEF\nABC deF\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 1048, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 994, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 964, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell, line_input)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 741, in ShellMain
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1348, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1101, in _EvalBracedVarSub
    val = self._ApplyUnarySuffixOp(val, op)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 767, in _ApplyUnarySuffixOp
    s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s, extglob)
  File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 356, in DoUnarySuffixOp
    raise NotImplementedError(ui.PrettyId(op.op_id))
NotImplementedError: Id.VOp1_Comma
osh_.py3 Lower Case glob

[osh_.py stdout] Expected 'ABC DEF\nABC deF\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
FATAL: Id.VOp1_Comma
osh_.cc3 Lower Case glob

[osh_.cc stdout] Expected 'ABC DEF\nABC deF\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'NotImplementedError*'
osh_.cc4 ${x@Q}

[osh_.cc stdout] Expected 'OK\n', got ''
[osh_.cc status] Expected 0, got -11

stdout:
stderr: 
osh_.cc5 ${!prefix@} ${!prefix*} yields sorted array of var names

[osh_.cc stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:486: void List<Str *>::sort() [T = Str *]: Assertion `0' failed.
osh_.cc6 ${!prefix@} matches var name (regression)

[osh_.cc stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:486: void List<Str *>::sort() [T = Str *]: Assertion `0' failed.
osh_.cc7 ${var@a} for attributes

[osh_.cc stdout] Expected 'a\nar\nrx\n', got 'a\na\n\n'

stdout:
a
a

stderr: