From 732eeae1b56146d101bb5cab7e94532f2b99675e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 5 Mar 2015 09:38:31 +0000 Subject: Missing test for alias fix --- Test/A02alias.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test') diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst index 7121c50ef..36dfa241e 100644 --- a/Test/A02alias.ztst +++ b/Test/A02alias.ztst @@ -42,3 +42,18 @@ cat <(echo foo | cat) 0:Alias expansion works at the end of parsed strings >foo + + alias '&&=(){ return $?; } && ' + alias not_the_print_command=print + eval 'print This is output + && print And so is this + && { print And this too; false; } + && print But not this + && print Nor this + true + && not_the_print_command And aliases are expanded' +0:We can now alias special tokens. Woo hoo. +>This is output +>And so is this +>And this too +>And aliases are expanded -- cgit 1.4.1