about summary refs log tree commit diff
path: root/Functions/Misc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-06-13 14:16:57 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-06-13 14:16:57 +0000
commit627c7db0e5c891c0878558e14b60f187009b5001 (patch)
tree29cbd1fb6f12b41be5d84c19a473c4fb5d394cfa /Functions/Misc
parent808b79eba68de4511c2960a3e5a5f672bed95a07 (diff)
downloadzsh-627c7db0e5c891c0878558e14b60f187009b5001.tar.gz
zsh-627c7db0e5c891c0878558e14b60f187009b5001.tar.xz
zsh-627c7db0e5c891c0878558e14b60f187009b5001.zip
zcalc completion idiosyncracies with :!
Diffstat (limited to 'Functions/Misc')
-rw-r--r--Functions/Misc/zcalc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc
index 2ec67a67d..40c829900 100644
--- a/Functions/Misc/zcalc
+++ b/Functions/Misc/zcalc
@@ -179,8 +179,8 @@ while vared -cehp "${(%)ZCALCPROMPT}" line; do
   line="${${line##[[:blank:]]#}%%[[:blank:]]#}"
   case "$line" in
     # Escapes begin with a colon
-    (:!*)
-    # shell escape
+    (:(\\|)!*)
+    # shell escape: handle completion's habit of quoting the !
     eval ${line##:\![[:blank:]]#}
     line=
     continue