echo shows up in process history too
Update release-notes.md #8436
pull jwilkins wants to merge 1 commits into bitcoin:0.13 from jwilkins:patch-1 changing 1 files +1 −1-
jwilkins commented at 7:09 PM on July 31, 2016: none
-
31fb475763
Update release-notes.md
echo shows up in process history too
-
MarcoFalke commented at 7:20 PM on July 31, 2016: member
I think the goal was about not having the password in
[h]toporps.If someone can
cat .bash_history, they can likely docat mysecretsettings.confas well. -
in doc/release-notes.md:None in 31fb475763
60 | @@ -61,7 +61,7 @@ The RPC command line client gained a new argument, `-stdin` 61 | to read extra arguments from standard input, one per line until EOF/Ctrl-D. 62 | For example: 63 | 64 | - $ echo -e "mysecretcode\n120" | src/bitcoin-cli -stdin walletpassphrase 65 | + $ cat mysecretsettings.conf | src/bitcoin-cli -stdin walletpassphrase
paveljanik commented at 7:38 PM on July 31, 2016:We will surely not merge
cat file | something reading from stdin...;-)paveljanik commented at 7:40 PM on July 31, 2016: contributorThe
echocommand is used here as an example only. We should properly mark it as such, because it is in the shell history as well, of course. But not by usingcatplease...laanwj commented at 6:39 AM on August 1, 2016: memberI did try this out before writing this, and echo won't show up in
psas it is a shell built-in, e.g. try this in one window:$ echo "secret" | sleep 100Then in another
ps eafux | grep secretThis shows only the grep process itself.
Sure, in practice, certainly in scripts you will probably source from a file
src/bitcoin-cli -stdin walletpassphrase < mysecretsettings.confIn any case it just an example, you can use the functionality in different ways.
edit: If you don't want something to end up in history it suffices to put a space before the line, at least in bash.
laanwj added the label Docs and Output on Aug 1, 2016paveljanik commented at 8:10 AM on August 1, 2016: contributorWhat about adding this after the example?
Warning: when used as described, the command line (including your secret walletpassphrase) will be stored in your shell history file.PRed as #8440.
paveljanik referenced this in commit d312711eb0 on Aug 1, 2016laanwj closed this on Aug 2, 2016DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:15 UTC
More mirrored repositories can be found on mirror.b10c.me