Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vared history not working inside scripts
- X-seq: zsh-users 17557
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: vared history not working inside scripts
- Date: Sun, 13 Jan 2013 18:56:48 +0000
- In-reply-to: <CACQNQ9NcJoXNHVePAKr9eW1HVtwN=4ZH9E__-yghPXXb_aWj_Q@mail.gmail.com>
- 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: <CACQNQ9NcJoXNHVePAKr9eW1HVtwN=4ZH9E__-yghPXXb_aWj_Q@mail.gmail.com>
On Sun, 13 Jan 2013 19:55:43 +0530
rahul <rahul2012@xxxxxxxxx> wrote:
> On the command line, "vared -h" allows me to access history using arrow
> keys or Control-R.
> Inside a script, nothing happens. Is there some setting I have to make in
> scripts.
I think you'll need to use interactive mode to get history to work. Use
"zsh -i". That'll stop you using "env" to find the shell, however ---
you can't change the option when the shell is running.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author