Package: bash
Version: 3.1dfsg-8

GNU Midnight Commander uses HISTCONTROL=ignorespace to hide some
commands issued to bash like setting of the prompt or xterm title using
escape sequences. Due to HISTCONTROL=ignoredups hardcoded in .bashrc,
mc polutes .bash_history on each directory change.

A possible fix is to check if HISTCONTROL is already set to ignorespace,
and in that case, promote it to ignoreboth:

if [ "$HISTCONTROL" = "ignorespace" ] ; then
    export HISTCONTROL=ignoreboth
else
    export HISTCONTROL=ignoredups
fi

Regards,
-- 
Jindrich Makovicka


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to