summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-06-13 09:26:15 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-06-13 09:26:15 +0000
commite10c11979420cc9455389cb6dab42c1d1babca22 (patch)
tree0523734368bafcf5a77a6b638db6c17e4b43b6af /Completion
parentddd50ac548d03d6b6bc82b9c9cef9f81444334a6 (diff)
downloadzsh-e10c11979420cc9455389cb6dab42c1d1babca22.tar.gz
zsh-e10c11979420cc9455389cb6dab42c1d1babca22.tar.xz
zsh-e10c11979420cc9455389cb6dab42c1d1babca22.zip
Fix assignment problems spotted by Bart
Diffstat (limited to 'Completion')
-rw-r--r--Completion/compinstall8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/compinstall b/Completion/compinstall
index b7b4a8412..42ef0c330 100644
--- a/Completion/compinstall
+++ b/Completion/compinstall
@@ -200,13 +200,13 @@ fi
 if [[ -z $compdir ]]; then
   # Start up a new zsh and get its default fpath.  If some swine has
   # tinkered with this in /etc/zshenv we're out of luck.
-  lines=${(f)"$(zsh -fc 'print -l $ZSH_VERSION $fpath')"}
-  lines=$lines[1]
+  lines=(${(f)"$(zsh -fc 'print -l $ZSH_VERSION $fpath')"})
+  line=$lines[1]
   shift lines
   # If the zsh in that path isn't right, maybe the user's shell is elsewhere.
   if [[ $line != $ZSH_VERSION && -x $SHELL ]]; then
-    lines=${(f)"$($SHELL -fc 'print -l $ZSH_VERSION $fpath' 2>/dev/null)"}
-    lines=$lines[1]
+    lines=(${(f)"$($SHELL -fc 'print -l $ZSH_VERSION $fpath' 2>/dev/null)"})
+    line=$lines[1]
     shift lines
   fi
   if [[ $line != $ZSH_VERSION ]]; then