From 59a67b31b0ccc3098466d0146ecf1cc28ec70e0f Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 7 Oct 2016 13:58:52 +0000 Subject: 39489: _path_files: Interpret -P as literally, rather than as a pattern. Follow-up to the last commit. --- Completion/Unix/Type/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 6a1e89f05..0d36b5487 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -69,7 +69,7 @@ fi pats=( "${(@)pats:# #}" ) if (( $#pfx )); then - compset -P "$pfx[2]" || pfxsfx=( "$pfx[@]" "$pfxsfx[@]" ) + compset -P "${(b)pfx[2]}" || pfxsfx=( "$pfx[@]" "$pfxsfx[@]" ) fi if (( $#prepaths )); then -- cgit v1.3.1