Hi,

I'm using Fedora 22 and  4.3.42(1)-release.
The issue is that \# prompt variable doesn't take into account the value of HISTIGNORE and HISTCONTROL.

Steps to reproduce (* when wrong)
==============
$bash --norc
bash-4.3$ PS1="C:\#>"
C:2>HISTIGNORE="history *"
C:3>HISTCONTROL=ignoredups
C:4>echo 4
4
C:5>history 4
   87  PS1="C:\#>"
   88  HISTIGNORE="history *"
   89  HISTCONTROL=ignoredups
   90  echo 4
*C:6>echo !-5:0
echo older command
older command
C:7>repeat
bash: repeat: no se encontrĂ³ la orden
C:8>repeat
bash: repeat: no se encontrĂ³ la orden
C:9>repeat
bash: repeat: no se encontrĂ³ la orden
C:10>echo !-1:0
echo repeat
repeat
*C:11>echo !-2:0
echo echo
echo
==========

I don't know if it is intented or a bug. I solved it with few lines of bash and show my own command number than \# on PS1.


Cheers


Reply via email to