coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: integrate bash read and history


From: Bernhard Voelker
Subject: Re: integrate bash read and history
Date: Wed, 5 Apr 2017 10:14:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 03/30/2017 09:44 PM, Nellis, Kenneth (Conduent) wrote:
> When I abandoned the Korn shell for bash many years ago, I was never able to 
> fully convert some interactive scripts that maintained their own history file 
> allowing recall of previous entries. Scouring the archives, I was delighted 
> to find Matthew Cengia's post* from 2013 that shows how to do it.
> 
> He ends with the question, "I'm not sure whether there's a better way to 
> append to the history file than the echo above; hopefully somebody else can 
> improve on that." No one did, at least not threaded to his post.
> 
> I don't have any old Korn shell scripts to confirm, but IIRC, the Korn 
> shell's read command had this capability built in, although you still had to 
> play with HISTFILE, so I ask if it's reasonable to have bash's read command 
> do the same to avoid having to do the echo dance.
> 
> * http://lists.gnu.org/archive/html/help-bash/2013-02/msg00001.html

Thanks for the report, but you've reached the GNU coreutils list. We don't
maintain bash or any other shell here, and I don't see how your question
would be related to coreutils, so we really aren't the right people to answer
your question.

You may have better luck by asking your bash's support list for help,
as the history handling is shell specific.

Have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]