Results for alias.test.sh

casedashbashmkshzshoshosh_ALTosh-byterundescription
0pass pass pass pass pass pass FAIL Basic alias
details
1pass pass pass pass pass pass FAIL define and use alias on a single line
details
2pass pass pass pass pass pass FAIL alias can override builtin
details
3pass pass pass pass pass pass FAIL defining multiple aliases, then unalias
details
4pass pass ok pass pass pass FAIL alias not defined
detailsdetails
5pass pass pass pass pass pass FAIL unalias not defined
details
6ok pass ok ok pass pass FAIL listing given aliases
detailsdetailsdetailsdetails
7ok pass ok ok pass pass FAIL alias without args lists all aliases
detailsdetailsdetailsdetails
8BUG pass BUG BUG pass pass FAIL unalias without args is a usage error
detailsdetailsdetailsdetails
9pass pass pass pass pass pass FAIL alias with trailing space causes alias expansion on second word
details
10pass pass pass pass pass pass FAIL Recursive alias expansion of first word
details
11pass pass pass pass pass pass FAIL Recursive alias expansion of SECOND word
details
12pass pass pass pass pass pass FAIL Expansion of alias with variable
details
13pass pass pass pass pass pass FAIL Alias must be an unquoted word, no expansions allowed
details
14BUG pass pass pass pass pass FAIL first and second word are the same alias, but no trailing space
detailsdetails
15pass pass pass pass pass pass FAIL first and second word are the same alias, with trailing space
details
16pass pass pass pass pass pass FAIL Invalid syntax of alias
details
17pass pass pass pass pass pass FAIL Dynamic alias definition
details
18pass pass pass pass pass pass FAIL Alias name with punctuation
details
19pass pass ok ok pass pass FAIL Syntax error after expansion
detailsdetailsdetails
20pass pass pass pass pass pass FAIL Loop split across alias and arg works
details
21pass pass pass pass FAIL FAIL FAIL Loop split across alias in another way
detailsdetailsdetails
22pass pass pass BUG FAIL FAIL FAIL Loop split across both iterative and recursive aliases
detailsdetailsdetailsdetails
23pass pass ok ok pass pass FAIL Alias with a quote in the middle is a syntax error
detailsdetailsdetails
24pass pass pass pass pass pass FAIL Alias with internal newlines
details
25pass pass pass ok pass pass FAIL Alias trailing newline
detailsdetails
26pass pass pass pass pass pass FAIL Two aliases in pipeline
details
27pass pass pass pass pass pass FAIL Alias not respected inside $()
details
28pass BUG pass pass pass pass FAIL Alias doesn't work on a single line!
detailsdetails
29pass pass pass BUG pass pass FAIL Alias is respected inside eval
detailsdetails
30pass BUG pass pass pass pass FAIL alias with redirects works
detailsdetails
31pass BUG pass pass pass pass FAIL alias with environment bindings works
detailsdetails
32pass pass pass pass pass pass FAIL alias with line continuation in the middle
details
33pass pass pass pass FAIL FAIL FAIL alias for left brace
detailsdetailsdetails
34pass pass pass pass FAIL FAIL FAIL alias for left paren
detailsdetailsdetails
35pass pass pass pass pass pass FAIL alias used in subshell and command sub
details
36pass pass pass pass pass pass FAIL alias used in here doc
details
37N-I pass pass N-I pass pass FAIL Corner case: alias inside LHS array arithmetic expression
detailsdetailsdetails
38pass pass pass pass pass pass FAIL Alias that is pipeline
details
39pass pass pass pass pass pass FAIL Alias that is && || ;
details

209 passed, 12 ok, 2 known unimplemented, 9 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh-byterun0 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-byterun1 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-byterun2 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-byterun3 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
mksh4 alias not defined

stdout:
nonexistentZ alias not found
status=1
stderr:
osh-byterun4 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-byterun5 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
dash6 listing given aliases

stdout:
e='echo'
ll='ls -l'
stderr:
mksh6 listing given aliases

stdout:
e=echo
ll='ls -l'
stderr:
zsh6 listing given aliases

stdout:
e=echo
ll='ls -l'
stderr:
osh-byterun6 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
dash7 alias without args lists all aliases

stdout:
ex='exit'
ll='ls -l'
status=0
stderr:
mksh7 alias without args lists all aliases

stdout:
ex=exit
ll='ls -l'
status=0
stderr:
zsh7 alias without args lists all aliases

stdout:
ex=exit
ll='ls -l'
status=0
stderr:
osh-byterun7 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
dash8 unalias without args is a usage error

stdout:
status=0
stderr:
mksh8 unalias without args is a usage error

stdout:
status=0
stderr:
zsh8 unalias without args is a usage error

stdout:
status=1
stderr:
unalias: not enough arguments
osh-byterun8 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-byterun9 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-byterun10 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-byterun11 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-byterun12 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-byterun13 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
dash14 first and second word are the same alias, but no trailing space

stdout:
x echo x
stderr:
_tmp/spec-bin/dash: 1: shopt: not found
osh-byterun14 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-byterun15 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-byterun16 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-byterun17 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-byterun18 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
mksh19 Syntax error after expansion

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found
_tmp/spec-bin/mksh: <stdin>[3]: syntax error: ';;' unexpected
zsh19 Syntax error after expansion

stdout:
stderr: 
zsh: command not found: shopt
zsh: parse error near `;;'
osh-byterun19 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-byterun20 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
osh21 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_ALT21 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-byterun21 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
zsh22 Loop split across both iterative and recursive aliases

stdout:
stderr: 
zsh: command not found: shopt
osh22 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_ALT22 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-byterun22 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
mksh23 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
zsh23 Alias with a quote in the middle is a syntax error

stdout:
stderr: 
zsh: command not found: shopt
zsh: unmatched '
osh-byterun23 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-byterun24 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
zsh25 Alias trailing newline

stdout:
1
2
3
stderr:
zsh: command not found: shopt
zsh: command not found: echo foo
osh-byterun25 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-byterun26 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-byterun27 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
bash28 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-byterun28 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
zsh29 Alias is respected inside eval

stdout:
hello outside
stderr:
zsh: command not found: shopt
zsh: command not found: sayhi
osh-byterun29 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
bash30 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-byterun30 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
bash31 alias with environment bindings works

stdout:
1
stderr:
_tmp/spec-bin/bash: line 3: p_: command not found
osh-byterun31 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-byterun32 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
osh33 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_ALT33 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-byterun33 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
osh34 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_ALT34 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-byterun34 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-byterun35 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-byterun36 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
dash37 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
zsh37 Corner case: alias inside LHS array arithmetic expression

stdout:
stderr: 
zsh: command not found: shopt
zsh: not an identifier: a[$(zeroech
osh-byterun37 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-byterun38 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-byterun39 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