From 6c1fb551ba0973c9a86e1ea479d553d66c6bf6b7 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:24:09 +0000 Subject: zsh-3.1.5-pws-14 --- Completion/Builtins/_hash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Builtins/_hash') diff --git a/Completion/Builtins/_hash b/Completion/Builtins/_hash index 8c100b801..4d4ba4244 100644 --- a/Completion/Builtins/_hash +++ b/Completion/Builtins/_hash @@ -1,12 +1,12 @@ #defcomp hash if [[ "$words[2]" = -*d* ]]; then - if [[ -string 1 '=' ]]; then + if compset -P 1 '*\='; then _path_files -g '*(-/)' else compgen -n -q -S '=' fi -elif [[ -string 1 '=' ]]; then +elif compset -P 1 '*\='; then _files -/g '*(*)' else compgen -m -q -S '=' -- cgit 1.4.1