Results for alias.test.sh

statusoshosh_.pyosh_.cc
pass 412518
ok 555
FAIL 01623
total464646
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL Usage of builtins
detailsdetails
1pass pass FAIL Basic alias
details
2pass pass FAIL define and use alias on a single line
details
3pass pass FAIL alias can override builtin
details
4pass pass FAIL defining multiple aliases, then unalias
details
5pass pass pass alias not defined
6pass pass FAIL unalias not defined
details
7pass pass pass listing given aliases
8pass FAIL FAIL alias without args lists all aliases
detailsdetails
9pass pass pass unalias without args is a usage error
10pass pass pass alias with trailing space causes alias expansion on second word
11pass pass pass Recursive alias expansion of first word
12pass pass pass Recursive alias expansion of SECOND word
13pass pass pass Expansion of alias with variable
14pass FAIL FAIL Alias must be an unquoted word, no expansions allowed
detailsdetails
15pass pass pass first and second word are the same alias, but no trailing space
16pass pass pass first and second word are the same alias, with trailing space
17pass FAIL FAIL Invalid syntax of alias
detailsdetails
18pass pass pass Dynamic alias definition
19pass pass pass Alias name with punctuation
20pass pass pass Syntax error after expansion
21pass pass pass Loop split across alias and arg works
22ok ok ok Loop split across alias in another way
detailsdetailsdetails
23ok ok ok Loop split across both iterative and recursive aliases
detailsdetailsdetails
24pass pass pass Alias with a quote in the middle is a syntax error
25pass pass pass Alias with internal newlines
26pass pass pass Alias trailing newline
27pass FAIL FAIL Two aliases in pipeline
detailsdetails
28pass FAIL FAIL Alias not respected inside $()
detailsdetails
29pass pass FAIL Alias can be defined and used on a single line
details
30pass pass pass Alias is respected inside eval
31pass FAIL FAIL alias with redirects works
detailsdetails
32pass FAIL FAIL alias with environment bindings works
detailsdetails
33pass pass pass alias with line continuation in the middle
34ok ok ok alias for left brace
detailsdetailsdetails
35ok ok ok alias for left paren
detailsdetailsdetails
36pass FAIL FAIL alias used in subshell and command sub
detailsdetails
37pass FAIL FAIL alias used in here doc
detailsdetails
38pass FAIL FAIL here doc inside alias
detailsdetails
39pass FAIL FAIL Corner case: alias inside LHS array arithmetic expression
detailsdetails
40pass FAIL FAIL Alias that is pipeline
detailsdetails
41pass FAIL FAIL Alias that is && || ;
detailsdetails
42pass FAIL FAIL Alias and command sub (bug regression)
detailsdetails
43pass pass FAIL Alias and arithmetic
details
44pass FAIL FAIL Alias and PS4
detailsdetails
45ok ok ok alias with keywords
detailsdetailsdetails
84 passed, 15 OK, 0 not implemented, 0 BUG, 39 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 Usage of builtins

[osh_.py status] Expected 127, got 1

stdout:
status=0
x
stderr:
Error running ['foo', 'x']: [Errno 2] No such file or directory
osh_.cc0 Usage of builtins

[osh_.cc stdout] Expected 'status=0\nx\n', got 'status=2\n(cmd_value.Argv argv:[foo x] arg_spids:[22 24])\n(cmd_value.Argv argv:[foo x] arg_spids:[32 34])\n'
[osh_.cc status] Expected 127, got 0

stdout:
status=2
(cmd_value.Argv argv:[foo x] arg_spids:[22 24])
(cmd_value.Argv argv:[foo x] arg_spids:[32 34])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc1 Basic alias

[osh_.cc stdout] Expected 'hello world\nhi\nexpected failure\n', got 'hello world\nhi\n(cmd_value.Argv argv:[hi] arg_spids:[40])\n'

stdout:
hello world
hi
(cmd_value.Argv argv:[hi] arg_spids:[40])
stderr:
Unhandled SimpleCommand
osh_.cc2 define and use alias on a single line

[osh_.cc stdout] Expected 'two\nthree\n', got '(cmd_value.Argv argv:[e one] arg_spids:[12 14])\ntwo\nthree\n'

stdout:
(cmd_value.Argv argv:[e one] arg_spids:[12 14])
two
three
stderr:
Unhandled SimpleCommand
osh_.cc3 alias can override builtin

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

stdout:
stderr: 
osh_.cc4 defining multiple aliases, then unalias

[osh_.cc stdout] Expected 'status=0\nx X\ny Y\nstatus=0\nundefined\nundefined\n', got 'status=0\nx X\ny Y\n'
[osh_.cc status] Expected 0, got -6

stdout:
status=0
x X
y Y
stderr:
osh_eval.dbg: mycpp/mylib.h:635: void Dict<Str *, Str *>::remove(K) [K = Str *, V = Str *]: Assertion `0' failed.
osh_.cc6 unalias not defined

[osh_.cc stdout] Expected 'status=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:635: void Dict<Str *, Str *>::remove(K) [K = Str *, V = Str *]: Assertion `0' failed.
osh_.py8 alias without args lists all aliases

[osh_.py stdout] Expected "alias ex='exit'\nalias ll='ls -l'\nstatus=0\n", got 'status=0\n'

stdout:
status=0
stderr:
osh_.cc8 alias without args lists all aliases

[osh_.cc stdout] Expected "alias ex='exit'\nalias ll='ls -l'\nstatus=0\n", got 'status=0\n'

stdout:
status=0
stderr:
osh_.py14 Alias must be an unquoted word, no expansions allowed

[osh_.py stdout] Expected 'X\nstatus=127\n', got 'X\nstatus=1\n'

stdout:
X
status=1
stderr:
Error running ['echo_alias_', 'X']: [Errno 2] No such file or directory
osh_.cc14 Alias must be an unquoted word, no expansions allowed

[osh_.cc stdout] Expected 'X\nstatus=127\n', got 'X\n(cmd_value.Argv argv:[echo_alias_ X] arg_spids:[31 33])\nstatus=0\n'

stdout:
X
(cmd_value.Argv argv:[echo_alias_ X] arg_spids:[31 33])
status=0
stderr:
Unhandled SimpleCommand
osh_.py17 Invalid syntax of alias

[osh_.py status] Expected 127, got 1

stdout:
stderr: 
  alias echo_alias_= 'echo --; echo'  # bad space here
        ^~~~~~~~~~~~
[ stdin ]:2: No alias named 'echo --; echo'
Error running ['x']: [Errno 2] No such file or directory
osh_.cc17 Invalid syntax of alias

[osh_.cc status] Expected 127, got 0

stdout:
(cmd_value.Argv argv:[x] arg_spids:[25])
stderr:
  alias echo_alias_= 'echo --; echo'  # bad space here
        ^~~~~~~~~~~~
[ stdin ]:2: No alias named 'echo --; echo'
Unhandled SimpleCommand
osh22 Loop split across alias in another way

stdout:
stderr: 
  for i in 1 2 3; do echo $i
                             ^
[ expansion of alias 'e_' ]:1: Expected word type Id.KW_Done, got Id.Eof_Real
osh_.py22 Loop split across alias in another way

stdout:
stderr: 
  for i in 1 2 3; do echo $i
                             ^
[ expansion of alias 'e_' ]:1: Expected word type Id.KW_Done, got Id.Eof_Real
osh_.cc22 Loop split across alias in another way

stdout:
stderr: 
  for i in 1 2 3; do echo $i
                             ^
[ expansion of alias 'e_' ]:1: dynamic_fmt_dummy
osh23 Loop split across both iterative and recursive aliases

stdout:
stderr: 
  for i in $one "2" 3
                      ^
[ expansion of alias 'FOR1' ]:1: Invalid word in for loop
osh_.py23 Loop split across both iterative and recursive aliases

stdout:
stderr: 
  for i in $one "2" 3
                      ^
[ expansion of alias 'FOR1' ]:1: Invalid word in for loop
osh_.cc23 Loop split across both iterative and recursive aliases

stdout:
stderr: 
  for i in $one "2" 3
                      ^
[ expansion of alias 'FOR1' ]:1: Invalid word in for loop
osh_.py27 Two aliases in pipeline

[osh_.py stdout] Expected '3\n', got ''

stdout:
stderr: 
osh_.cc27 Two aliases in pipeline

[osh_.cc stdout] Expected '3\n', got ''

stdout:
stderr: 
osh_.py28 Alias not respected inside $()

[osh_.py status] Expected 127, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc28 Alias not respected inside $()

[osh_.cc status] Expected 127, got 0

stdout:
(cmd_value.Argv argv:[sayhi] arg_spids:[17])
stderr:
Unhandled SimpleCommand
osh_.cc29 Alias can be defined and used on a single line

[osh_.cc stdout] Expected 'hello other line\n', got '(cmd_value.Argv argv:[sayhi same line] arg_spids:[14 16 18])\nhello other line\n'

stdout:
(cmd_value.Argv argv:[sayhi same line] arg_spids:[14 16 18])
hello other line
stderr:
Unhandled SimpleCommand
osh_.py31 alias with redirects works

[osh_.py status] Expected 0, got 1

stdout:
1
2
3
stderr:
cat: /alias1.txt: No such file or directory
cat: /alias2.txt: No such file or directory
cat: /alias3.txt: No such file or directory
osh_.cc31 alias with redirects works

[osh_.cc stdout] Expected '1\n2\n3\n', got "1\n2\n3\n(cmd_value.Argv argv:[cat '/alias1.txt' '/alias2.txt' '/alias3.txt'] arg_spids:[50 52 55 58])\n"

stdout:
1
2
3
(cmd_value.Argv argv:[cat '/alias1.txt' '/alias2.txt' '/alias3.txt'] arg_spids:[50 52 55 58])
stderr:
Unhandled SimpleCommand
osh_.py32 alias with environment bindings works

[osh_.py stdout] Expected '1\n2\n', got 'None\nNone\n'

stdout:
None
None
stderr:
osh_.cc32 alias with environment bindings works

[osh_.cc stdout] Expected '1\n2\n', got '(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[14 16])\n(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[25 27])\n'

stdout:
(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[14 16])
(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[25 27])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh34 alias for left brace

stdout:
stderr: 
  { echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Lit_RBrace, got Id.Eof_Real
osh_.py34 alias for left brace

stdout:
stderr: 
  { echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Lit_RBrace, got Id.Eof_Real
osh_.cc34 alias for left brace

stdout:
stderr: 
  { echo one
             ^
[ expansion of alias 'LEFT' ]:1: dynamic_fmt_dummy
osh35 alias for left paren

stdout:
stderr: 
  ( echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real
osh_.py35 alias for left paren

stdout:
stderr: 
  ( echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real
osh_.cc35 alias for left paren

stdout:
stderr: 
  ( echo one
             ^
[ expansion of alias 'LEFT' ]:1: dynamic_fmt_dummy
osh_.py36 alias used in subshell and command sub

[osh_.py stdout] Expected '[ subshell\n[ commandsub\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc36 alias used in subshell and command sub

[osh_.cc stdout] Expected '[ subshell\n[ commandsub\n', got '\n'

stdout:
stderr: 
osh_.py37 alias used in here doc

[osh_.py stdout] Expected '[ ]\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 1320, in _Execute
    redirects = self._EvalRedirects(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _EvalRedirects
    result.append(self._EvalRedirect(redir))
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 407, in _EvalRedirect
    val = self.word_ev.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc37 alias used in here doc

[osh_.cc stdout] Expected '[ ]\n', got '(cmd_value.Argv argv:[cat] arg_spids:[13])\n'

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[13])
stderr:
Unhandled SimpleCommand
osh_.py38 here doc inside alias

[osh_.py stdout] Expected 'hi\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 598, in _Dispatch
    status = self._Execute(node.child)
  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 963, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1364, in _ExecuteList
    status = self._Execute(child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1320, in _Execute
    redirects = self._EvalRedirects(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _EvalRedirects
    result.append(self._EvalRedirect(redir))
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 407, in _EvalRedirect
    val = self.word_ev.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc38 here doc inside alias

[osh_.cc stdout] Expected 'hi\n', got '(cmd_value.Argv argv:[cat] arg_spids:[17])\n'

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[17])
stderr:
Unhandled SimpleCommand
osh_.py39 Corner case: alias inside LHS array arithmetic expression

[osh_.py stdout] Expected "['ZERO', 'ONE']\n", got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 833, in _Dispatch
    lval = self.arith_ev.EvalShellLhs(pair.lhs, spid, lookup_mode)
  File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 697, in EvalShellLhs
    index = self.EvalToInt(node.index)
  File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 367, in EvalToInt
    val = self.Eval(node)
  File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 408, in Eval
    return self.word_ev.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc39 Corner case: alias inside LHS array arithmetic expression

[osh_.cc stdout] Expected "['ZERO', 'ONE']\n", got '(cmd_value.Argv argv:[argv.py ZERO ONE] arg_spids:[41 43 43])\n'

stdout:
(cmd_value.Argv argv:[argv.py ZERO ONE] arg_spids:[41 43 43])
stderr:
Unhandled SimpleCommand
osh_.py40 Alias that is pipeline

[osh_.py stdout] Expected '3\n', got ''

stdout:
stderr: 
osh_.cc40 Alias that is pipeline

[osh_.cc stdout] Expected '3\n', got ''

stdout:
stderr: 
osh_.py41 Alias that is && || ;

[osh_.py stdout] Expected 'one\ntwo\n1\nfour\n', got 'one\ntwo\nfour\n'

stdout:
one
two
four
stderr:
osh_.cc41 Alias that is && || ;

[osh_.cc stdout] Expected 'one\ntwo\n1\nfour\n', got 'one\ntwo\nfour\n'

stdout:
one
two
four
stderr:
osh_.py42 Alias and command sub (bug regression)

[osh_.py stdout] Expected "['foo', 'bar']\n", got 'foo bar\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
foo bar
stderr:
[??? no location ???] $HOME isn't defined
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 598, in _Dispatch
    status = self._Execute(node.child)
  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 963, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1364, in _ExecuteList
    status = self._Execute(child)
  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 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc42 Alias and command sub (bug regression)

[osh_.cc stdout] Expected "['foo', 'bar']\n", got 'foo bar\n(cmd_value.Argv argv:[argv.py] arg_spids:[35])\n'

stdout:
foo bar
(cmd_value.Argv argv:[argv.py] arg_spids:[35])
stderr:
[??? no location ???] $HOME isn't defined
Unhandled SimpleCommand
osh_.cc43 Alias and arithmetic

[osh_.cc stdout] Expected "['3']\n", got '(cmd_value.Argv argv:[argv.py 3] arg_spids:[22 24])\n'

stdout:
(cmd_value.Argv argv:[argv.py 3] arg_spids:[22 24])
stderr:
Unhandled SimpleCommand
osh_.py44 Alias and PS4

[osh_.py stdout] Expected "['foo', 'bar']\n", got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    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 849, in _Dispatch
    self.tracer.OnShAssignment(lval, pair.op, val, flags, lookup_mode)
  File "/home/andy/git/oilshell/oil/core/dev.py", line 255, in OnShAssignment
    first_char, prefix = self._EvalPS4()
  File "/home/andy/git/oilshell/oil/core/dev.py", line 233, in _EvalPS4
    prefix = self.word_ev.EvalForPlugin(ps4_word)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1548, in EvalForPlugin
    val = self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc44 Alias and PS4

[osh_.cc stdout] Expected "['foo', 'bar']\n", got '(cmd_value.Argv argv:[argv.py foo bar] arg_spids:[46 48 50])\n'

stdout:
(cmd_value.Argv argv:[argv.py foo bar] arg_spids:[46 48 50])
stderr:
set 2
Unhandled SimpleCommand
osh45 alias with keywords

stdout:
stderr: 
  
   ^
[ expansion of alias 'a' ]:1: Unexpected EOF while parsing command
osh_.py45 alias with keywords

stdout:
stderr: 
  
   ^
[ expansion of alias 'a' ]:1: Unexpected EOF while parsing command
osh_.cc45 alias with keywords

stdout:
stderr: 
   
   ^
[ expansion of alias 'a' ]:1: Unexpected EOF while parsing command