sh: Add tests for modifying an alias (r242766).
Note: parser/alias10.0 will eat a lot of memory/cpu time when it fails (with the old sh).
This commit is contained in:
parent
9009053e85
commit
5acb236703
12
tools/regression/bin/sh/builtins/alias3.0
Normal file
12
tools/regression/bin/sh/builtins/alias3.0
Normal file
@ -0,0 +1,12 @@
|
||||
# $FreeBSD$
|
||||
set -e
|
||||
|
||||
unalias -a
|
||||
alias foo=bar
|
||||
alias bar=
|
||||
alias quux="1 2 3"
|
||||
alias foo=bar
|
||||
alias bar=
|
||||
alias quux="1 2 3"
|
||||
alias
|
||||
alias foo
|
4
tools/regression/bin/sh/builtins/alias3.0.stdout
Normal file
4
tools/regression/bin/sh/builtins/alias3.0.stdout
Normal file
@ -0,0 +1,4 @@
|
||||
bar=''
|
||||
foo=bar
|
||||
quux='1 2 3'
|
||||
foo=bar
|
5
tools/regression/bin/sh/parser/alias10.0
Normal file
5
tools/regression/bin/sh/parser/alias10.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
alias echo='echo'
|
||||
alias echo='echo'
|
||||
[ "`eval echo b`" = b ]
|
Loading…
Reference in New Issue
Block a user