Results for alias.test.sh

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

Details on runs that didn't PASS

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
osh-cpp22 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
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
osh-cpp23 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
osh34 alias for left brace

stdout:
stderr: 
  { echo one
            ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Lit_RBrace, got Id.Eof_Real
osh-cpp34 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
osh-cpp35 alias for left paren

stdout:
stderr: 
  ( echo one
            ^
[ expansion of alias 'LEFT' ]:1: Expected word type Id.Right_Subshell, got Id.Eof_Real
osh45 alias with keywords

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

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