Re: bash_history



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




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