about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-03-19 16:38:12 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-03-19 16:38:12 +0000
commit95a581f6d46629ccba7a5c1b40e0794598e61325 (patch)
treeccc543994ec5997f82fba5d0a9cf9204b32c05f5 /Completion/Unix
parentdb65bef4131c1f6d926b74cb1bbc6fad2adfbe7e (diff)
downloadzsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.gz
zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.xz
zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.zip
Use // instead of :gs in parameter substitution
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files
index 762ef4eaa..f21d7bc3b 100644
--- a/Completion/Unix/Type/_files
+++ b/Completion/Unix/Type/_files
@@ -90,7 +90,7 @@ fi
 
 tried=()
 for def in "$pats[@]"; do
-  eval "def=( ${${def:gs/\\:/\\\\\\:}//(#b)([][()|*?^#~<>])/\\${match[1]}} )"
+  eval "def=( ${${def//\\:/\\\\\\:}//(#b)([][()|*?^#~<>])/\\${match[1]}} )"
 
   tmp="${(@M)def#*[^\\]:}"
   (( $tried[(I)${(q)tmp}] )) && continue