4 ms·
Add an extra space in the front to prevent your shell from adding the (potentially secret) env vars to your plaintext history file.
by koolba 9y ago
Add an extra space in the front to prevent your shell from adding the (potentially secret) env vars to your plaintext history file.
- twic 9y agoIn that situation, i'm more likely to write: MY_SECRET=$(read) some_command Without the space. That way, i get the utility of command history, without the danger of the secret being in there.