From 115c000e25f6c5246bbcd5fa5f9a0a5b143179e2 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 10 Nov 2004 17:28:25 +0000 Subject: Handle $$ when expanding variables. --- Completion/Unix/Command/_make | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make index abfac58a1..28dc25f74 100644 --- a/Completion/Unix/Command/_make +++ b/Completion/Unix/Command/_make @@ -22,6 +22,10 @@ expandVars() { close='' var=${(s::)var[1]} ;; + (\$*) + # avoid parsing second $ in $$ + tmp=${tmp#\$} + continue (*) continue ;; @@ -38,7 +42,7 @@ expandVars() { ;; esac else - print -- $ret + print -- ${ret//\$\$/\$} return fi done -- cgit 1.4.1