about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-11-10 17:28:25 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-11-10 17:28:25 +0000
commit115c000e25f6c5246bbcd5fa5f9a0a5b143179e2 (patch)
tree326ebef7c07f9b1ceefcbb61ddc57c773b0e9388 /Completion/Unix/Command
parent40f62b620125a59d8ce2fb26fbbdf3e228644879 (diff)
downloadzsh-115c000e25f6c5246bbcd5fa5f9a0a5b143179e2.tar.gz
zsh-115c000e25f6c5246bbcd5fa5f9a0a5b143179e2.tar.xz
zsh-115c000e25f6c5246bbcd5fa5f9a0a5b143179e2.zip
Handle $$ when expanding variables.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_make6
1 files changed, 5 insertions, 1 deletions
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