unposted: fix alias test in 24736 properly

This commit is contained in:
Peter Stephenson 2008-03-27 09:41:08 +00:00
parent 1b551d0513
commit ae832b901e
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2008-03-27 Peter Stephenson <pws@csr.com>
* unposted: fix alias test in 24736 properly by replacing
"foo" everywhere.
2008-03-26 Peter Stephenson <pws@csr.com>
* unposted: Config/version.mk: 4.3.5-dev-3.

View file

@ -1,20 +1,24 @@
# To get the "command not found" message when aliasing is suppressed
# we need, er, a command that isn't found.
# The other aliases are only ever used as aliases.
%prep
alias foo=echo
alias ThisCommandDefinitelyDoesNotExist=echo
alias -g bar=echo
alias '\bar=echo'
%test
foo foo
ThisCommandDefinitelyDoesNotExist ThisCommandDefinitelyDoesNotExist
0:Basic aliasing
>foo
>ThisCommandDefinitelyDoesNotExist
bar bar
0:Global aliasing
>echo
\ThisCommandDefinitelyDoesNotExist foo
\ThisCommandDefinitelyDoesNotExist ThisCommandDefinitelyDoesNotExist
127:Not aliasing
?(eval):1: command not found: ThisCommandDefinitelyDoesNotExist