Results for alias.test.sh

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

236 passed, 22 ok, 2 known unimplemented, 10 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

mksh4 alias not defined

stdout:
nonexistentZ alias not found
status=1
stderr:
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:
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:
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
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
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 `;;'
osh21 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_t KW_Done 200>, got <Id_t Eof_Real 4>
osh_ALT21 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_t KW_Done 200>, got <Id_t Eof_Real 4>
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

stdout:
stderr: 
  for i in $one "2" 3
                      ^
[ expansion of alias 'FOR1' ]:1: Invalid word in for loop
osh_ALT22 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
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 '
zsh25 Alias trailing newline

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

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

stdout:
1
stderr:
_tmp/spec-bin/bash: line 3: p_: command not found
osh33 alias for left brace

stdout:
stderr: 
  { echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type <Id_t Lit_RBrace 21>, got <Id_t Eof_Real 4>
osh_ALT33 alias for left brace

stdout:
stderr: 
  { echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type <Id_t Lit_RBrace 21>, got <Id_t Eof_Real 4>
osh34 alias for left paren

stdout:
stderr: 
  ( echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type <Id_t Right_Subshell 92>, got <Id_t Eof_Real 4>
osh_ALT34 alias for left paren

stdout:
stderr: 
  ( echo one
             ^
[ expansion of alias 'LEFT' ]:1: Expected word type <Id_t Right_Subshell 92>, got <Id_t Eof_Real 4>
bash37 here doc inside alias

stdout:
stderr: 
_tmp/spec-bin/bash: line 6: warning: here-document at line 6 delimited by end-of-file (wanted `EOF')
_tmp/spec-bin/bash: line 6: hi: command not found
_tmp/spec-bin/bash: line 6: EOF: command not found
dash38 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
zsh38 Corner case: alias inside LHS array arithmetic expression

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

stdout:
stderr: 
osh44 alias with keywords

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

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