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

Re: query about history management in bash

On Mon, Dec 28, 2009 at 04:32:02AM +0530, Rajarshi Tiwari wrote:
> To @Alex >>
> >couldn't you do
> >unset HISTFILE
> >vim <histfile>
> >exit
> I don't follow, but i believe you are trying to suggest that one should
> temporary disable history, edit the file manually, to clean it, and then
> restore.  If this what you suggest, I am already doing it :-) , but looking
> for something that could automate it safely.
no unsetting HISTFILE mean bash will not update the history file, so
edit it with vim and then exit the bash program. I was repling to the
fact that the suggestion was to start the editor in another thread - 

> Rajarshi
> *************************************************
>                       Rajarshi Tiwari,
>                    Graduate Student
>             (Condensed matter Physics)
>        Harish Chandra Research Institute
>                    Allahabad-211019
>                   ph.0532-227-4405 (O)
>                   ph.0532-227-4139 (R)
>             http://www.hri.res.in/~rajarshi
> *************************************************

The words fly away, the writings remain.

Reply to: