[bglug] Bash : Strano comando e output di netstat.
Diego Tironi
bglug@lists.linux.it
Tue, 3 Sep 2002 19:16:48 +0200
piankhy wrote:
> Da root la bash mi dà una sequenza di caratteri strani che non ho
> digitato quando recupero gli input da tastiera dalla cronologia :
>
credo che questo post trovato su usenet chiarisca la situazione:
> 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\05
6\061\070\056\123\165\123\105\057\163\143\162\151\160\164\163\057\154\170\14
4\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.
Spero di esserti stato utile.
Ciao :-)
--
Diego Tironi - diego@tironi.net
PGP DH/DSS Key ID: 0x23570D06
Fingerprint: 17CB 8495 2471 9AD9 C052 A8E7 3602 1BC7 2357 0D06
Veritas vos liberabit