From aab0f6d763b0eb3eb964c576953c9dd0b90916ae Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 15 Dec 2017 08:56:19 +0000 Subject: 42123 (tweaked): take account of Dash in function names. Needed when comparing word code function name with autoload request. Add test. --- Test/C04funcdef.ztst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Test') diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 0c00a0477..5786018e0 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -523,6 +523,15 @@ 1: ?fn:4: maximum nested function level reached; increase FUNCNEST? + ( + fpath=(.) + print "foo-bar() { print this should run automatically; }" >foo-bar + autoload -Uz foo-bar + foo-bar + ) +0:autoload containing dash +>this should run automatically + %clean rm -f file.in file.out -- cgit 1.4.1