Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: file completion(?) erases word typed
- X-seq: zsh-workers 39101
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: file completion(?) erases word typed
- Date: Wed, 24 Aug 2016 17:04:54 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=fiZNxFUONQBrVlGYETWI1W2HL4Mr++KQefpLTjwcbH0=; b=u8monyi4dkZazu5wO7RgF7Kf4VL8oAxwh72KxD6/T299aVpu2bu68eiOTT3UYo8CKh 4TU2uMdkcF0f/3B1VqTergf83lTSrws0D5a+ACMbuJXtFvR5fBhBfO7r18FpM4yMjrgR 6/yw9JLgzoXUs7HL82JVz+p6sNIS+VmYVwGl/0XhUWc8RSSf2lpo773xuIurwlXOZLY+ HiJEyfBZLPrI/4JKcN+lrSH+poUCQC6AR5epkeKsG01HWf1WZ3smijCcdsVDQrCuoCzx NIFiC/FOlrUxoBTpd3Z1qcGE/voltCakrvBfVW4dyuxjYOkIW5hCC23613XfZmUEPNIz pi2w==
- In-reply-to: <20160824191313.GA31943@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160823224842.GA24864@fujitsu.shahaf.local2> <160823225204.ZM19950@torch.brasslantern.com> <20160824191313.GA31943@fujitsu.shahaf.local2>
On Aug 24, 7:13pm, Daniel Shahaf wrote:
}
} > +_path_files:713> compadd -Qf -J -default- -p usr/local/bin/ -s '' -W /usr/local/bin/ -M 'r:|/=* r:|=*' -a tmp1
} >
} > I have no idea why ignoring the path minus its leading slash would ever
} > be correct, but in any case this appears to be adding the full path by
} > two different and contradictory approaches.
}
} What _absolute_command_paths intended to be is:
}
} - You can type in an absolute path to an executable file, even if that
} file is not in $PATH or in $commands.
What's the reason for passing -P / to _path_files in _typed-in_* ?
That's what's causing the strange -p usr/local/bin getting passed to
compadd. Despite what the doc says, _path_files doesn't actually pass
the -P option along to compadd, instead it calls "compset -P" which
makes it an ignored prefix instead.
I'm still not sure whether (or what) this has to do with the word on
the line disappearing.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author