spec test index / oilshell.org
80 passed, 15 OK, 0 not implemented, 0 BUG, 43 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 Usage of builtins [osh_.py stdout] Expected 'status=0\nx\n', got 'status=0\nx\n(cmd_value.Argv argv:[foo x] arg_spids:[37 39])\n' [osh_.py status] Expected 127, got 0 stdout: status=0 x (cmd_value.Argv argv:[foo x] arg_spids:[37 39])stderr: Unhandled SimpleCommand |
osh_.cc | 0 Usage of builtins [osh_.cc stdout] Expected 'status=0\nx\n', got 'status=0\nx\n(cmd_value.Argv argv:[foo x] arg_spids:[37 39])\n' [osh_.cc status] Expected 127, got 0 stdout: status=0 x (cmd_value.Argv argv:[foo x] arg_spids:[37 39])stderr: Unhandled SimpleCommand |
osh_.py | 1 Basic alias [osh_.py 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_.cc | 1 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_.py | 2 define and use alias on a single line [osh_.py 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 threestderr: Unhandled SimpleCommand |
osh_.cc | 2 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 threestderr: Unhandled SimpleCommand |
osh_.cc | 3 alias can override builtin [osh_.cc stdout] Expected 'foo bar\n', got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.py | 4 defining multiple aliases, then unalias [osh_.py stdout] Expected 'status=0\nx X\ny Y\nstatus=0\nundefined\nundefined\n', got 'status=0\nx X\ny Y\nstatus=0\n(cmd_value.Argv argv:[echo-x X] arg_spids:[67 69])\n(cmd_value.Argv argv:[echo-y Y] arg_spids:[77 79])\n' stdout: status=0 x X y Y status=0 (cmd_value.Argv argv:[echo-x X] arg_spids:[67 69]) (cmd_value.Argv argv:[echo-y Y] arg_spids:[77 79])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 4 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\nstatus=0\n(cmd_value.Argv argv:[echo-x X] arg_spids:[67 69])\n(cmd_value.Argv argv:[echo-y Y] arg_spids:[77 79])\n' stdout: status=0 x X y Y status=0 (cmd_value.Argv argv:[echo-x X] arg_spids:[67 69]) (cmd_value.Argv argv:[echo-y Y] arg_spids:[77 79])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 8 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=0stderr: |
osh_.cc | 8 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=0stderr: |
osh_.py | 14 Alias must be an unquoted word, no expansions allowed [osh_.py 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=0stderr: Unhandled SimpleCommand |
osh_.cc | 14 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=0stderr: Unhandled SimpleCommand |
osh_.py | 17 Invalid syntax of alias [osh_.py 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 |
osh_.cc | 17 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 |
osh | 22 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_.py | 22 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_.cc | 22 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 |
osh | 23 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_.py | 23 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_.cc | 23 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_.py | 27 Two aliases in pipeline [osh_.py stdout] Expected '3\n', got '' stdout: stderr: |
osh_.cc | 27 Two aliases in pipeline [osh_.cc stdout] Expected '3\n', got '' stdout: stderr: |
osh_.py | 28 Alias not respected inside $() [osh_.py status] Expected 127, got 0 stdout: (cmd_value.Argv argv:[sayhi] arg_spids:[17])stderr: Unhandled SimpleCommand |
osh_.cc | 28 Alias not respected inside $() [osh_.cc status] Expected 127, got 0 stdout: (cmd_value.Argv argv:[sayhi] arg_spids:[17])stderr: Unhandled SimpleCommand |
osh_.py | 29 Alias can be defined and used on a single line [osh_.py 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 linestderr: Unhandled SimpleCommand |
osh_.cc | 29 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 linestderr: Unhandled SimpleCommand |
osh_.py | 31 alias with redirects works [osh_.py 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_.cc | 31 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_.py | 32 alias with environment bindings works [osh_.py 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 |
osh_.cc | 32 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 |
osh | 34 alias for left brace stdout: stderr: { echo one ^ [ expansion of alias 'LEFT' ]:1: Expected word type Id.Lit_RBrace, got Id.Eof_Real |
osh_.py | 34 alias for left brace stdout: stderr: { echo one ^ [ expansion of alias 'LEFT' ]:1: Expected word type Id.Lit_RBrace, got Id.Eof_Real |
osh_.cc | 34 alias for left brace stdout: stderr: { echo one ^ [ expansion of alias 'LEFT' ]:1: dynamic_fmt_dummy |
osh | 35 alias for left paren stdout: stderr: ( echo one ^ [ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real |
osh_.py | 35 alias for left paren stdout: stderr: ( echo one ^ [ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real |
osh_.cc | 35 alias for left paren stdout: stderr: ( echo one ^ [ expansion of alias 'LEFT' ]:1: dynamic_fmt_dummy |
osh_.py | 36 alias used in subshell and command sub [osh_.py stdout] Expected '[ subshell\n[ commandsub\n', got '\n' stdout: stderr: |
osh_.cc | 36 alias used in subshell and command sub [osh_.cc stdout] Expected '[ subshell\n[ commandsub\n', got '\n' stdout: stderr: |
osh_.py | 37 alias used in here doc [osh_.py 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_.cc | 37 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_.py | 38 here doc inside alias [osh_.py 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_.cc | 38 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_.py | 39 Corner case: alias inside LHS array arithmetic expression [osh_.py 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_.cc | 39 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_.py | 40 Alias that is pipeline [osh_.py stdout] Expected '3\n', got '' stdout: stderr: |
osh_.cc | 40 Alias that is pipeline [osh_.cc stdout] Expected '3\n', got '' stdout: stderr: |
osh_.py | 41 Alias that is && || ; [osh_.py stdout] Expected 'one\ntwo\n1\nfour\n', got 'one\ntwo\nfour\n' stdout: one two fourstderr: |
osh_.cc | 41 Alias that is && || ; [osh_.cc stdout] Expected 'one\ntwo\n1\nfour\n', got 'one\ntwo\nfour\n' stdout: one two fourstderr: |
osh_.py | 42 Alias and command sub (bug regression) [osh_.py 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_.cc | 42 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_.py | 43 Alias and arithmetic [osh_.py 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_.cc | 43 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_.py | 44 Alias and PS4 [osh_.py stdout] Expected "['foo', 'bar']\n", got '(cmd_value.Argv argv:[argv.py foo bar] arg_spids:[53 55 57])\n' stdout: (cmd_value.Argv argv:[argv.py foo bar] arg_spids:[53 55 57])stderr: + (lvalue.Named name:PS4 spids:[24]) = (value.Str s:'+$(echo trace) ') + shopt -s expand_aliases + alias 'a=argv.py' + argv.py foo bar Unhandled SimpleCommand |
osh_.cc | 44 Alias and PS4 [osh_.cc stdout] Expected "['foo', 'bar']\n", got '(cmd_value.Argv argv:[argv.py foo bar] arg_spids:[53 55 57])\n' stdout: (cmd_value.Argv argv:[argv.py foo bar] arg_spids:[53 55 57])stderr: Unhandled SimpleCommand |
osh | 45 alias with keywords stdout: stderr: ^ [ expansion of alias 'a' ]:1: Unexpected EOF while parsing command |
osh_.py | 45 alias with keywords stdout: stderr: ^ [ expansion of alias 'a' ]:1: Unexpected EOF while parsing command |
osh_.cc | 45 alias with keywords stdout: stderr: ^ [ expansion of alias 'a' ]:1: Unexpected EOF while parsing command |