sh: Add test for unaliasing an alias that is currently in use.

This already works correctly.
This commit is contained in:
jilles 2017-04-08 21:57:59 +00:00
parent 47497baabf
commit ac0377de0b
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,7 @@ ${PACKAGE}FILES+= alias12.0
${PACKAGE}FILES+= alias13.0
${PACKAGE}FILES+= alias14.0
${PACKAGE}FILES+= alias15.0 alias15.0.stdout
${PACKAGE}FILES+= alias16.0
${PACKAGE}FILES+= and-pipe-not.0
${PACKAGE}FILES+= case1.0
${PACKAGE}FILES+= case2.0

View File

@ -0,0 +1,7 @@
# $FreeBSD$
v=1
alias a='unalias a
v=2'
eval a
[ "$v" = 2 ]