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 Tjoelker 2012-11-08 13:36:19 +00:00
parent e964872f18
commit 2b6ceccde5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242767
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 ]