summary refs log tree commit diff
path: root/Test/C04funcdef.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-12-15 08:56:19 +0000
committerPeter Stephenson <pws@zsh.org>2017-12-15 09:00:37 +0000
commitaab0f6d763b0eb3eb964c576953c9dd0b90916ae (patch)
treea9904adba1126d1492411a09029c3283e95186e8 /Test/C04funcdef.ztst
parentcb04ae40af123da88bf0209964965d17a9486325 (diff)
downloadzsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.gz
zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.xz
zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.zip
42123 (tweaked): take account of Dash in function names.
Needed when comparing word code function name with autoload request.

Add test.
Diffstat (limited to 'Test/C04funcdef.ztst')
-rw-r--r--Test/C04funcdef.ztst9
1 files changed, 9 insertions, 0 deletions
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