Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh: insert-last-word problem after completion
- X-seq: zsh-workers 27920
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: zsh: insert-last-word problem after completion
- Date: Mon, 26 Apr 2010 13:34:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=zvuxjmsYBMcDJGD2Iqn1u4Pl4HcvhoPLQpd3tZ+jE70=; b=PnVapDKmOehOD9HTl9DbRW2f71vRI8r8uLjTdk3z3ujBeG6lpNqt9afrFD/G+deOig 3XRgarbHReZg68V6QMBEHGH6VFmC6Z5zjKqj5MGBfPu8EW2FbNtjhRih8z3QFAr8SSyE 9KlhpH7HTJ+BmVAguym58I1kSFFKKpiIANzbc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=MaonlIQ/8Jf/nN5Tl//zDHT9QisjsDJF3Q6prEJEO0fETBdqtgwbo5pzEpNk1pc2wP F63kiRQ/iOFKrGW58tKRu5ePL9+fjNbRErnlMxxqPkv0hwQsY/vAmHr6uxMwXDH2vXCZ Ky9NgkbzFWgvacNAg/QKT4rbCIFnwhzvBApiM=
- In-reply-to: <20100426105331.GC25015@xxxxxxxxxxxxxxxxxxx>
- 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: <20100426105331.GC25015@xxxxxxxxxxxxxxxxxxx>
On 26 April 2010 12:53, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> I've reported the following bug in Debian. It also occurs
> under Mac OS X.
>
> After a "zsh -f":
>
> % alias my_echo=echo
> % false
> % true &
> % my_ech[TAB]
>
> A succession of [ESC] . (bound to insert-last-word) gives:
>
> my_echo&
> my_echo&&
> my_echo&false
>
> while I would expect:
>
> my_echo &
> my_echo false
>
> or even better:
>
> my_echo true
> my_echo false
>
> i.e. the "&" should be ignored by insert-last-word.
Maybe you want smart-insert-last-word?
Otherwise, the rightmost ``interesting'' word from the
previous com-
mand is found and inserted. The default definition of
``interesting''
is that the word contains at least one alphabetic
character, slash, or
backslash. This definition may be overridden by use
of the match
style.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author