Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: subsitutions and beginning of lines.
- X-seq: zsh-users 20743
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: subsitutions and beginning of lines.
- Date: Mon, 12 Oct 2015 08:53:21 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <20151012022637.GB2464@tarsus.local2>
- 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
- References: <561AB49A.4060801@eastlink.ca> <20151012022637.GB2464@tarsus.local2>
On 10/11/2015 07:26 PM, Daniel Shahaf wrote:
You could avoid parsing the line numbers (and unescaping the commands)
altogether by accessing the history differently:
% print -r - $history[1004] echo foo
I could never get that to work with anything besides a single
subscript. I'd expect it
to drive like any other array but nothing seems to work:
print -lr - $history[-5,-1]
... and the point of what I'm doing is to show a range.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author