From ae832b901e70b5247cc652381e57c1f08ac5e395 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 27 Mar 2008 09:41:08 +0000 Subject: unposted: fix alias test in 24736 properly --- Test/A02alias.ztst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Test/A02alias.ztst') diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst index 591590b9c..0c2a464c9 100644 --- a/Test/A02alias.ztst +++ b/Test/A02alias.ztst @@ -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 -- cgit 1.4.1