Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: refering to 2nd from last history parameter?
- X-seq: zsh-users 19781
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: refering to 2nd from last history parameter?
- Date: Mon, 26 Jan 2015 12:16:49 +0000
- In-reply-to: <XnsA42E7AF6C5E7davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <XnsA42A7D32D20B8davidrayninfocouk@80.91.229.13> <CAECNH1RyC2Q-5y3Ynk-F+cJvtRvFPWdvcpDOqXmrJB=uSJCbTQ@mail.gmail.com> <XnsA42E7AF6C5E7davidrayninfocouk@80.91.229.13>
On Mon, 26 Jan 2015 12:05:14 +0000
zzapper <david@xxxxxxxxxxxxxx> wrote:
> Still think it's a pity that there's no !$-1 , !$-2 etc
The summary of the discussion is that there is, but it means the wrong
thing: "-" is always a range in history arguments. Clearly this
isn't what you actually want here, or ever would.
We could special case the meaning here: given that ranges have to be in
order, a range starting with "$" is by definition useless. It's a bit
kludgy but this is !-history so it's hard to imagine anyone looking for
elegance. Does this break anything?
I was wondering about using a different character, but I think any
solution where "minus" is not encoded by "-" is too obscure to be
useful.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author