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:
jilles 2012-11-08 13:36:19 +00:00
parent 9009053e85
commit 5acb236703
3 changed files with 21 additions and 0 deletions

View 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

View File

@ -0,0 +1,4 @@
bar=''
foo=bar
quux='1 2 3'
foo=bar

View File

@ -0,0 +1,5 @@
# $FreeBSD$
alias echo='echo'
alias echo='echo'
[ "`eval echo b`" = b ]