sh: Add tests for alias names after another alias.
Since the first alias's value does not end with a blank, the next word should not be checked for aliases.
This commit is contained in:
parent
9471658415
commit
03e55809f4
@ -16,6 +16,8 @@ FILES+= alias8.0
|
||||
FILES+= alias9.0
|
||||
FILES+= alias10.0
|
||||
FILES+= alias11.0
|
||||
FILES+= alias12.0
|
||||
FILES+= alias13.0
|
||||
FILES+= and-pipe-not.0
|
||||
FILES+= case1.0
|
||||
FILES+= case2.0
|
||||
|
6
bin/sh/tests/parser/alias12.0
Normal file
6
bin/sh/tests/parser/alias12.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
unalias -a
|
||||
alias alias0=command
|
||||
alias true='echo bad'
|
||||
eval 'alias0 true'
|
6
bin/sh/tests/parser/alias13.0
Normal file
6
bin/sh/tests/parser/alias13.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
unalias -a
|
||||
alias command=command
|
||||
alias true='echo bad'
|
||||
eval 'command true'
|
Loading…
x
Reference in New Issue
Block a user