diff options
| author | Peter Stephenson <pws@zsh.org> | 2017-12-15 08:56:19 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2017-12-15 09:00:37 +0000 |
| commit | aab0f6d763b0eb3eb964c576953c9dd0b90916ae (patch) | |
| tree | a9904adba1126d1492411a09029c3283e95186e8 /Test/C04funcdef.ztst | |
| parent | add millisecond and microsecond options to TIMEFMT variable (diff) | |
| download | zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.gz zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.bz2 zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.lz zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.xz zsh-aab0f6d763b0eb3eb964c576953c9dd0b90916ae.tar.zst 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.ztst | 9 |
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 |
