diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2010-03-19 16:38:12 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-03-19 16:38:12 +0000 |
| commit | 95a581f6d46629ccba7a5c1b40e0794598e61325 (patch) | |
| tree | ccc543994ec5997f82fba5d0a9cf9204b32c05f5 /Completion/Unix | |
| parent | unposted: fix new test in A01grammar.ztst (diff) | |
| download | zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.gz zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.bz2 zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.lz zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.xz zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.tar.zst zsh-95a581f6d46629ccba7a5c1b40e0794598e61325.zip | |
Use // instead of :gs in parameter substitution
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Type/_files | 2 |
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 |
