Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A weird bug of grep completion
- X-seq: zsh-workers 43217
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Joey Pabalinas <joeypabalinas@xxxxxxxxx>, Joseph Lee <cgjosephlee@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: A weird bug of grep completion
- Date: Sat, 28 Jul 2018 07:54:25 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=sdP3SO FrTZGoT16EmOnUrwImBN59E9TWu/6OmNsK278=; b=eRS+oy6roUbkHBkjjxu+P3 OCqtUWmQtbCi2SJRxCSLeApZHVy01cSAirpEQ0ZfpsAKHCvfgfJnwRHG7ARKdQ8v bYMVEHha/d0RFLZIBAAVzsE7RBFvKfG62EvNFXcJD28K1vMPeYEEfrt7IFxHEaLm Ft+QvHmcnylbCkhw8SPynj3WNKSgiWQAVUc4+f+HR4htcmSGDFo2IQwbG9/VPeyu WCZNcc4Yt3tIsLfEw3tiwpokQ9gnk29gB3gIaBZoGRQJwgxoXGUF7Qnlr8jLfJrH LyeX2qHOLqyPjiygKiQQIMRwXbOhkX872IV3YV7zpBtwXz4UEaF5LGI1W4L3Q1/g ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=sdP3SO FrTZGoT16EmOnUrwImBN59E9TWu/6OmNsK278=; b=efG0VmAdSnEyGV1Mfowjzq gUyGOZd3BTfStwxIxMGdiWlh8QH001xnLHxiIiaktvEIDIQSd5w9xICQk1J6h+1y f4swk9IGdpmTCFsAP0vJvV3PUo8m7k3ekvgT58394xhkwb1MNY7/qI9ehvIgFKQ9 0cwZG5kzpuo8IKt9DFSDXHfhMacoORS/3qQ5VoiKJI2kDdor6AWVbyfLePF6TrHr 8c81x3fQLl6GqC1xwolos39HQnBS/P5Hv6YVMdjGI8tILKQn/jklgW8eH2DuImPr KPvFFI7JB+EYGfZPofZ1XWLunWznsJ4RxROUMY5kq4c/i9ZF94hxWWYagIJxj16w ==
- In-reply-to: <164debc1328.2878.115d99ba41c6f10c410cad5529ce8e09@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <15e31c7e-4fc4-401a-8320-184f3914e572@Spark> <164debc1328.2878.115d99ba41c6f10c410cad5529ce8e09@gmail.com>
Joey Pabalinas wrote on Fri, 27 Jul 2018 16:34 -1000:
> On July 27, 2018 4:28:27 PM Joseph Lee <cgjosephlee@xxxxxxxxx> wrote:
>
> > Dear all,
> > I'm using macOS 10.13.6, zsh 5.5.1 (x86_64-apple-darwin16.7.0) and grep (GNU grep) 3.1 packaged by Homebrew.
> > A weird behavior happened when completing `grep --no-*` arguments.
> > While typing `--no-group-separator`, which is a GNU only argument, after another `--no-*`, the cursor stoped in a wrong place and unable to finish completion. But it works right when `--no-group-separator` goes ahead.
> >
> > Words might not be clear, so here's a demo video:
> > https://streamable.com/bxbdv
> >
> > I would appreciate any ideas, thank you.
>
> You ended up with your cursor one to the left of a - (you can see it
> within the block cursor) and that would cause completion to behave a bit
> oddly depending on setopts.
To clarify: the bug report is that «grep --no-filename --no<TAB>» appends
a hyphen to $BUFFER but leaves $CURSOR as it was, after the second "--no"
rather than after the newly-added hyphen.
There's no option whose name is of the form /^--no[^-].*/, so this does seem to
be a bug.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author