Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: vared history not working inside scripts



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