about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-08-21 17:12:46 +0100
committerPeter Stephenson <pws@zsh.org>2015-08-21 17:12:46 +0100
commite5d5a76dce1cc488627c8623f0cd972c3d52644d (patch)
treeb08a2c65f8f3d03c80e4336a081b43124c08919c /Test
parentf4c37a78b150005b59801b0a2fdbb36b50a293be (diff)
downloadzsh-e5d5a76dce1cc488627c8623f0cd972c3d52644d.tar.gz
zsh-e5d5a76dce1cc488627c8623f0cd972c3d52644d.tar.xz
zsh-e5d5a76dce1cc488627c8623f0cd972c3d52644d.zip
Test for 36265, no alias expansion after "function"
Diffstat (limited to 'Test')
-rw-r--r--Test/C04funcdef.ztst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst
index 74f881587..0951e2cde 100644
--- a/Test/C04funcdef.ztst
+++ b/Test/C04funcdef.ztst
@@ -295,6 +295,19 @@
 >}
 >This is the correct output.
 
+ unfunction command_not_found_handler # amusing but unhelpful
+ alias first='firstfn1 firstfn2' second='secondfn1 secondfn2'
+ function first second { print This is function $0; }
+ first
+ second
+ firstfn1
+ secondfn1
+127:No alias expansion after "function" keyword
+>This is function first
+>This is function second
+?(eval):6: command not found: firstfn1
+?(eval):7: command not found: secondfn1
+
 %clean
 
  rm -f file.in file.out