Results for alias.test.sh

statusdashbashmkshzshosh
pass 4045403741
ok 20555
N-I 10010
BUG 31130
total4646464646
casedashbashmkshzshoshdescription
0BUG pass 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
7ok pass ok ok pass listing given aliases
detailsdetailsdetails
8ok pass ok ok pass alias without args lists all aliases
detailsdetailsdetails
9BUG pass BUG BUG pass unalias without args is a usage error
detailsdetailsdetails
10pass pass pass pass pass alias with trailing space causes alias expansion on second word
11pass pass pass pass pass Recursive alias expansion of first word
12pass pass pass pass pass Recursive alias expansion of SECOND word
13pass pass pass pass pass Expansion of alias with variable
14pass pass pass pass pass Alias must be an unquoted word, no expansions allowed
15pass pass pass pass pass first and second word are the same alias, but no trailing space
16pass pass pass pass pass first and second word are the same alias, with trailing space
17pass pass pass pass pass Invalid syntax of alias
18pass pass pass pass pass Dynamic alias definition
19pass pass pass pass pass Alias name with punctuation
20pass pass ok ok pass Syntax error after expansion
detailsdetails
21pass pass pass pass pass Loop split across alias and arg works
22pass pass pass pass ok Loop split across alias in another way
details
23pass pass pass BUG ok Loop split across both iterative and recursive aliases
detailsdetails
24pass pass ok ok pass Alias with a quote in the middle is a syntax error
detailsdetails
25pass pass pass pass pass Alias with internal newlines
26pass pass pass ok pass Alias trailing newline
details
27pass pass pass pass pass Two aliases in pipeline
28pass pass pass pass pass Alias not respected inside $()
29pass pass pass pass pass Alias can be defined and used on a single line
30pass pass pass BUG pass Alias is respected inside eval
details
31pass pass pass pass pass alias with redirects works
32pass pass pass pass pass alias with environment bindings works
33pass pass pass pass pass alias with line continuation in the middle
34pass pass pass pass ok alias for left brace
details
35pass pass pass pass ok alias for left paren
details
36pass pass pass pass pass alias used in subshell and command sub
37pass pass pass pass pass alias used in here doc
38pass BUG pass pass pass here doc inside alias
details
39N-I pass pass N-I pass Corner case: alias inside LHS array arithmetic expression
detailsdetails
40pass pass pass pass pass Alias that is pipeline
41pass pass pass pass pass Alias that is && || ;
42pass pass pass pass pass Alias and command sub (bug regression)
43pass pass pass pass pass Alias and arithmetic
44BUG pass pass pass pass Alias and PS4
details
45pass pass pass pass ok alias with keywords
details
203 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:
dash7 listing given aliases

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

stdout:
stderr: 
  ( echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real
bash38 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
dash39 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
zsh39 Corner case: alias inside LHS array arithmetic expression

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

stdout:
stderr: 
osh45 alias with keywords

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