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:
Jilles Tjoelker 2014-01-25 14:59:08 +00:00
parent 9471658415
commit 03e55809f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261160
3 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
# $FreeBSD$
unalias -a
alias alias0=command
alias true='echo bad'
eval 'alias0 true'

View File

@ -0,0 +1,6 @@
# $FreeBSD$
unalias -a
alias command=command
alias true='echo bad'
eval 'command true'