News for hackers. Stuff that matters.
Re:Handling secrets (somewhat) securely in shells by 5d41402abc4b on Wednesday January 14, 2026 @03:25AM (#46613642)
>But wait – the token= command ends up in the history again

If you prepend your command with a space, it will not be added to your shell history.

Re:Handling secrets (somewhat) securely in shells by linuxhackerman on Wednesday January 14, 2026 @03:44AM (#46613776)
As I mention in the post:

>One way to avoid this is to prevent the command from being written to history. Bash has a configuration variable named HISTCONTROL, which when set to include ignorespace prevents commands prefixed with whitespace from being saved in history.