sh: Add test for unaliasing an alias that is currently in use.
This already works correctly.
This commit is contained in:
parent
47497baabf
commit
ac0377de0b
@ -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
|
||||
|
7
bin/sh/tests/parser/alias16.0
Normal file
7
bin/sh/tests/parser/alias16.0
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
v=1
|
||||
alias a='unalias a
|
||||
v=2'
|
||||
eval a
|
||||
[ "$v" = 2 ]
|
Loading…
Reference in New Issue
Block a user