From 954cdd77d77136e572fc4896f3c0ba16f5c933ec Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 22 Jun 2016 13:10:22 +0100 Subject: 38746: Fix suffix alias expansion recursion. This was problematic if the expansion landed you back in command position. Delay marking the alias as out of use until the text that caused the expansion is finished. --- Test/A02alias.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test/A02alias.ztst') diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst index 49e47567c..1e09cd3f1 100644 --- a/Test/A02alias.ztst +++ b/Test/A02alias.ztst @@ -104,3 +104,9 @@ >0 ?(eval):2: invalid alias 'x=y' encountered while printing aliases # Currently, 'alias -L' returns 0 in this case. Perhaps it should return 1. + + alias -s mysuff='print -r "You said it.";' + eval 'thingummy.mysuff' +127:No endless loop with suffix alias in command position +>You said it. +?(eval):1: command not found: thingummy.mysuff -- cgit 1.4.1