Re: bash_history
- From: adam <adamd forensicdata com au>
- To: Pavel Roskin <proski gnu org>
- Cc: <mc gnome org>
- Subject: Re: bash_history
- Date: Thu, 11 Jul 2002 09:42:13 +1000 (EST)
Thanks Pavel,
I found the problem, $HISTCONTROL was being set in bash.bashrc:
# Do not save dupes in the bash history file
HISTCONTROL=ignoredups
This must have been added with SuSE 8.0 because it only became a problem
after the last upgrade, ive changed this to HISTCONTROL=ignoreboth which
fixes the problem.
thanks again
Adam
On Wed, 10 Jul 2002, Pavel Roskin wrote:
Hi, Adam!
is there any way to stop mc from filling up my bash history with:
PROMPT_COMMAND='pwd>&9;kill -STOP $$'
cd "`echo -e
'\057\165\163\162\057\163\162\143\057\154\151\156\165\170\055\062\056\064\056\061\070\056\123\165\123\105\057\163\143\162\151\160\164\163\057\154\170\144\151\141\154\157\147'`"
cd "`echo -e '\057\165\163\162\057\154\151\142'`"
etc etc
mc-4.5.55 sets environment variable HISTCONTROL to "ignorespace". Either
it's not set by MC due to a bug, or it's unset in your statup scripts, or
your bash ignores it. Run this command from mc:
echo $HISTCONTROL
Try setting HISTCONTROL=ignorespace and then check if bash remembers in
its history commands starting with a space.
--
Regards,
Pavel Roskin
_______________________________________________
Mc mailing list
Mc gnome org
http://mail.gnome.org/mailman/listinfo/mc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]