alias () { run-file alias "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } alias: spec test case results

Results for alias.test.sh

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

Details on runs that didn't PASS

dash0 Usage of builtins

stdout:
status=1
x
stderr:
dash: 1: shopt: not found
alias: -- not found
dash: 6: foo: not found
mksh5 alias not defined

stdout:
nonexistentZ alias not found
status=1
stderr:
dash8 List aliases by providing names

stdout:
e='echo'
ll='ls -l'
stderr:
mksh8 List aliases by providing names

stdout:
e=echo
ll='ls -l'
stderr:
zsh8 List aliases by providing names

stdout:
e=echo
ll='ls -l'
stderr:
dash9 alias without args lists all aliases

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

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

stdout:
ex=exit
ll='ls -l'
status=0
stderr:
dash10 unalias without args is a usage error

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

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

stdout:
status=1
stderr:
unalias: not enough arguments
mksh21 Syntax error after expansion

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[3]: syntax error: ';;' unexpected
zsh21 Syntax error after expansion

stdout:
stderr: 
zsh: command not found: shopt
zsh: parse error near `;;'
osh23 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
zsh24 Loop split across both iterative and recursive aliases

stdout:
stderr: 
zsh: command not found: shopt
osh24 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
mksh25 Alias with a quote in the middle is a syntax error

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[5]: no closing quote
zsh25 Alias with a quote in the middle is a syntax error

stdout:
stderr: 
zsh: command not found: shopt
zsh: unmatched '
zsh27 Alias trailing newline

stdout:
1
2
3
stderr:
zsh: command not found: shopt
zsh: command not found: echo foo
zsh31 Alias is respected inside eval

stdout:
hello outside
stderr:
zsh: command not found: shopt
zsh: command not found: sayhi
osh35 alias for left brace

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

stdout:
stderr: 
  ( echo one
            ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real
bash39 here doc inside alias

stdout:
stderr: 
bash: line 6: warning: here-document at line 6 delimited by end-of-file (wanted `EOF')
bash: line 6: hi: command not found
bash: line 6: EOF: command not found
dash40 Corner case: alias inside LHS array arithmetic expression

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: a[0]=ZERO: not found
dash: 4: a[1]=ONE: not found
dash: 5: Bad substitution
zsh40 Corner case: alias inside LHS array arithmetic expression

stdout:
stderr: 
zsh: command not found: shopt
zsh: not an identifier: a[$(zeroech
dash45 Alias and PS4

stdout:
stderr: 
osh46 alias with keywords

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