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

This already works correctly.
This commit is contained in:
Jilles Tjoelker 2017-04-08 21:57:59 +00:00
parent 1b766820b0
commit 5850a75952
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316646
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 ]