sh: Add some testcases for alias expansion.
This commit is contained in:
parent
41dcd4566c
commit
dfb434120d
5
tools/regression/bin/sh/parser/alias1.0
Normal file
5
tools/regression/bin/sh/parser/alias1.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
alias alias0=exit
|
||||
eval 'alias0 0'
|
||||
exit 1
|
6
tools/regression/bin/sh/parser/alias2.0
Normal file
6
tools/regression/bin/sh/parser/alias2.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
alias alias0=exit
|
||||
x=alias0
|
||||
eval 'case $x in alias0) exit 0;; esac'
|
||||
exit 1
|
Loading…
x
Reference in New Issue
Block a user