mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Fix assignment problems spotted by Bart
This commit is contained in:
parent
ddd50ac548
commit
e10c119794
@ -1,3 +1,8 @@
|
||||
2001-06-13 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Completion/compinstall: pointed out by Bart: bad
|
||||
array handling.
|
||||
|
||||
2001-06-13 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 14883 (Jos Backus): Completion/Unix/Command/_mount: add code for
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user