spec test index / oilshell.org
209 passed, 12 ok, 2 known unimplemented, 9 known bugs, 4 failed, 0 skipped
osh-byterun | 0 Basic alias [osh-byterun stdout] Expected 'hello world\nhi\nexpected failure\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 1 define and use alias on a single line [osh-byterun stdout] Expected 'two\nthree\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 2 alias can override builtin [osh-byterun stdout] Expected 'foo bar\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 3 defining multiple aliases, then unalias [osh-byterun stdout] Expected 'status=0\nx X\ny Y\nstatus=0\nundefined\nundefined\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 4 alias not defined stdout: nonexistentZ alias not found status=1stderr: |
osh-byterun | 4 alias not defined [osh-byterun stdout] Expected 'status=1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 5 unalias not defined [osh-byterun stdout] Expected 'status=1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 6 listing given aliases stdout: e='echo' ll='ls -l'stderr: |
mksh | 6 listing given aliases stdout: e=echo ll='ls -l'stderr: |
zsh | 6 listing given aliases stdout: e=echo ll='ls -l'stderr: |
osh-byterun | 6 listing given aliases [osh-byterun stdout] Expected "alias e='echo'\nalias ll='ls -l'\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 7 alias without args lists all aliases stdout: ex='exit' ll='ls -l' status=0stderr: |
mksh | 7 alias without args lists all aliases stdout: ex=exit ll='ls -l' status=0stderr: |
zsh | 7 alias without args lists all aliases stdout: ex=exit ll='ls -l' status=0stderr: |
osh-byterun | 7 alias without args lists all aliases [osh-byterun stdout] Expected "alias ex='exit'\nalias ll='ls -l'\nstatus=0\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 8 unalias without args is a usage error stdout: status=0stderr: |
mksh | 8 unalias without args is a usage error stdout: status=0stderr: |
zsh | 8 unalias without args is a usage error stdout: status=1stderr: unalias: not enough arguments |
osh-byterun | 8 unalias without args is a usage error [osh-byterun stdout] Expected 'status=2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 9 alias with trailing space causes alias expansion on second word [osh-byterun stdout] Expected 'hello world !!!\nhello world punct\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 10 Recursive alias expansion of first word [osh-byterun stdout] Expected '__ hello world\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 11 Recursive alias expansion of SECOND word [osh-byterun stdout] Expected 'one TWO hello world\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 12 Expansion of alias with variable [osh-byterun stdout] Expected 'y hi\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 13 Alias must be an unquoted word, no expansions allowed [osh-byterun stdout] Expected 'X\nstatus=127\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 14 first and second word are the same alias, but no trailing space stdout: x echo xstderr: _tmp/spec-bin/dash: 1: shopt: not found |
osh-byterun | 14 first and second word are the same alias, but no trailing space [osh-byterun stdout] Expected 'x echo-x\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 15 first and second word are the same alias, with trailing space [osh-byterun stdout] Expected 'x echo x\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 16 Invalid syntax of alias [osh-byterun status] Expected 127, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 17 Dynamic alias definition [osh-byterun stdout] Expected 'X\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 18 Alias name with punctuation [osh-byterun stdout] Expected 'X\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 19 Syntax error after expansion stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[3]: syntax error: ';;' unexpected |
zsh | 19 Syntax error after expansion stdout: stderr: zsh: command not found: shopt zsh: parse error near `;;' |
osh-byterun | 19 Syntax error after expansion [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 20 Loop split across alias and arg works [osh-byterun stdout] Expected '1\n2\n3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 21 Loop split across alias in another way [osh stdout] Expected '1\n2\n3\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'e_' at line -1 of TODO>" for i in 1 2 3; do echo $i ^ Expected word type <Id_t KW_Done 206>, got <Id_t Eof_Real 4> |
osh_ALT | 21 Loop split across alias in another way [osh_ALT stdout] Expected '1\n2\n3\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'e_' at line -1 of TODO>" for i in 1 2 3; do echo $i ^ Expected word type <Id_t KW_Done 206>, got <Id_t Eof_Real 4> |
osh-byterun | 21 Loop split across alias in another way [osh-byterun stdout] Expected '1\n2\n3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
zsh | 22 Loop split across both iterative and recursive aliases stdout: stderr: zsh: command not found: shopt |
osh | 22 Loop split across both iterative and recursive aliases [osh stdout] Expected '1\n2\n3\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'FOR1' at line -1 of TODO>" for i in $one "2" 3 ^ Invalid word in for loop |
osh_ALT | 22 Loop split across both iterative and recursive aliases [osh_ALT stdout] Expected '1\n2\n3\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'FOR1' at line -1 of TODO>" for i in $one "2" 3 ^ Invalid word in for loop |
osh-byterun | 22 Loop split across both iterative and recursive aliases [osh-byterun stdout] Expected '1\n2\n3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 23 Alias with a quote in the middle is a syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[5]: no closing quote |
zsh | 23 Alias with a quote in the middle is a syntax error stdout: stderr: zsh: command not found: shopt zsh: unmatched ' |
osh-byterun | 23 Alias with a quote in the middle is a syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 24 Alias with internal newlines [osh-byterun stdout] Expected '1\n2\n3 echo foo\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
zsh | 25 Alias trailing newline stdout: 1 2 3stderr: zsh: command not found: shopt zsh: command not found: echo foo |
osh-byterun | 25 Alias trailing newline [osh-byterun stdout] Expected '1\n2\n3\nfoo\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 26 Two aliases in pipeline [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 27 Alias not respected inside $() [osh-byterun status] Expected 127, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 28 Alias doesn't work on a single line! stdout: stderr: _tmp/spec-bin/bash: line 1: sayhi: command not found _tmp/spec-bin/bash: line 2: sayhi: command not found |
osh-byterun | 28 Alias doesn't work on a single line! [osh-byterun stdout] Expected 'hello other line\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
zsh | 29 Alias is respected inside eval stdout: hello outsidestderr: zsh: command not found: shopt zsh: command not found: sayhi |
osh-byterun | 29 Alias is respected inside eval [osh-byterun stdout] Expected 'hello inside\nhello outside\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 30 alias with redirects works stdout: stderr: _tmp/spec-bin/bash: line 2: e_: command not found _tmp/spec-bin/bash: line 3: e_: command not found _tmp/spec-bin/bash: line 4: e_: command not found |
osh-byterun | 30 alias with redirects works [osh-byterun stdout] Expected '1\n2\n3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 31 alias with environment bindings works stdout: 1stderr: _tmp/spec-bin/bash: line 3: p_: command not found |
osh-byterun | 31 alias with environment bindings works [osh-byterun stdout] Expected '1\n2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 32 alias with line continuation in the middle [osh-byterun stdout] Expected 'ONE TWO ONE TWO THREE two one\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 33 alias for left brace [osh stdout] Expected 'one\ntwo\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'LEFT' at line -1 of TODO>" { echo one ^ Expected word type <Id_t Lit_RBrace 19>, got <Id_t Eof_Real 4> |
osh_ALT | 33 alias for left brace [osh_ALT stdout] Expected 'one\ntwo\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'LEFT' at line -1 of TODO>" { echo one ^ Expected word type <Id_t Lit_RBrace 19>, got <Id_t Eof_Real 4> |
osh-byterun | 33 alias for left brace [osh-byterun stdout] Expected 'one\ntwo\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 34 alias for left paren [osh stdout] Expected 'one\ntwo\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'LEFT' at line -1 of TODO>" ( echo one ^ Expected word type <Id_t Right_Subshell 92>, got <Id_t Eof_Real 4> |
osh_ALT | 34 alias for left paren [osh_ALT stdout] Expected 'one\ntwo\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: Line 1 of "<expansion of alias 'LEFT' at line -1 of TODO>" ( echo one ^ Expected word type <Id_t Right_Subshell 92>, got <Id_t Eof_Real 4> |
osh-byterun | 34 alias for left paren [osh-byterun stdout] Expected 'one\ntwo\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 35 alias used in subshell and command sub [osh-byterun stdout] Expected '[ subshell\n[ commandsub\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 36 alias used in here doc [osh-byterun stdout] Expected '[ ]\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 37 Corner case: alias inside LHS array arithmetic expression stdout: stderr: _tmp/spec-bin/dash: 1: shopt: not found _tmp/spec-bin/dash: 3: a[0]=ZERO: not found _tmp/spec-bin/dash: 4: a[1]=ONE: not found _tmp/spec-bin/dash: 5: Bad substitution |
zsh | 37 Corner case: alias inside LHS array arithmetic expression stdout: stderr: zsh: command not found: shopt zsh: not an identifier: a[$(zeroech |
osh-byterun | 37 Corner case: alias inside LHS array arithmetic expression [osh-byterun stdout] Expected "['ZERO', 'ONE']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 38 Alias that is pipeline [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 39 Alias that is && || ; [osh-byterun stdout] Expected 'one\ntwo\n1\nfour\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |