command stack in buffer
Michael Welle
mwe012008 at gmx.net
Tue Jan 5 13:01:30 UTC 2010
Hi,
"David Robert Lewis (ethnopunk)" <ethnopunk at telkomsa.net> writes:
> Michael Welle wrote:
>> Hi,
>>
>> Colin Law <clanlaw at googlemail.com> writes:
>>
>>
>>> 2010/1/5 Michael Welle <mwe012008 at gmx.net>:
>>>
>>>> Hi,
>>>>
>>>> vijay shanker <vijay.shad at gmail.com> writes:
>>>> [...]
>>>>
>>>>>> Now that you raise the issue I am keen to try this solution from
>>>>>> http://blog.macromates.com/2008/working-with-history-in-bash/:
>>>>>>
>>>>>> add to bashrc
>>>>>>
>>>>>> export HISTCONTROL=erasedups
>>>>>> export HISTCONTROL=1000
>>>>>>
>>> That should be HISTSIZE=1000, someone mis-read from the link.
>>>
>> OK, haven't read the blog. If HISTCONTROL is set in the right manner it
>> should work. I guess the OP 1) hasn't restart the shell or 2) bashrc
>> isn't evaluated or HISTCONTROL is overriden or 3) he expects the history
>> file is magically changed or 4) he can't copy and paste ;).
>>
>> Regards
>> hmw
>>
>>
> Oops, sorry 4 the snafu, couldn't cut and paste. HISTSIZE=1000 should
> work. Tuping bash at the command should reset the shell and give you
> another instance of bash?
>
> I see the default is set as
> HISTCONTROL=ignoreboth
>
> Does one change this to
>
> HISTCONTROL=ignoredups
>
> or
>
> HISTCONTROL="&"
>
> Which is better?
AFAIK & is not a valid value for HISTCONTROL. It looks more like
belonging to HISTINGNORE. A short test reveals that & as a value for
HISTCONTROL seems to have (has?) no effect.
Regards
hmw
--
biff4emacsen - A biff-like tool for (X)Emacs
http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html
Flood - Your friendly network packet generator
http://www.c0t0d0s0.de/flood/flood.html
More information about the ubuntu-users
mailing list