Gnome terminal echos the command being executed in the tab/terminal title regardless of the settings. This is a problem for me because occasionally I run scrips which require a password as an argument. For example: az login -u .... -p ##### I start these commands with the HISTIGNORE value of course. The problem is that this behaviour appears inescapable. Changes to PROMPT_COMMAND and PS1 do not seem to achieve anything. Changes in settings do not seem to achieve anything. The problem persists when using bash --norc. Reproducible: Always Steps to Reproduce: 1. Open gnome-terminal 2. Run: yes "mypassword" 3. See yes mypassword in terminal title and tab title Actual Results: See yes mypassword in terminal title and tab title Expected Results: Ability to hide sensitive commands
The reason I made this a medium bug is that one can work-around the problem. It is, however, very annoying and a security concern if somebody isn't well aware of this. Setting the command to know what the terminal is running is not bad per-se, BUT there should be some better way to protect sensitive commands