From 7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 3 Oct 2014 14:17:33 +0100 Subject: 33343: Variant anonymous function synax with arguments. Don't expand arguments as if in command position. Test. --- Test/C04funcdef.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test/C04funcdef.ztst') diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index a2660315f..193757090 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -272,6 +272,12 @@ >ignorebraces is off >ignorebraces is still on here +# lsfoo should not be expanded as an anonymous function argument + alias lsfoo='This is not ls.' + () (echo anon func; echo "$@") lsfoo +0:Anonmous function with arguments in a form nobody sane would ever use but unfortunately we have to support anyway +>anon func +>lsfoo %clean -- cgit v1.2.3-70-g09d2