Is there a way to hide a single argument passed into the terminal, but still pass the argument to the command?
This question addresses the problem of passing a plain-text password through the shell.
But, even if not a password, there is a use for selective arguments to be hidden from CLI history, including personal information as might be used in LDAP (other than passwords).
So, is there anything like this:
command :
program argument1 argument2 {{argument3}} argument4
history :
program argument1 argument2 {{}} argument4
...as such, argument3
would pass to the program
, but appear as {{}}
in BASH history?
Rephrased, can we flag a specific argument for in-line redaction?
If this is not possible, is there an RFC on why it should not be?