Sorry, I was referring to the "echo $selected_password" line that doesn't seem to serve a purpose (though, not as harmful as it first seemed given the variable name).
On Fri, Jun 27, 2014 at 2:41 PM, Christoph Egger < [email protected]> wrote: > Hi! > > Brian Mattern <[email protected]> writes: > > Is the echo necessary? > > Well, dmenu reads from stdin so you need to echo into it (or do some > `ls | sed` which forks) [0]. For xdotool you could get around by doing a > `xdotool type "$(pass $passentry)"` but then everyone able to run `ps` > or anything similar on your system can read xdotool's comandline > parameters so the `echo -n "type " ; pass` is the "safe" solution. > > Christoph > > [0] http://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu > uses `printf` but does that part basically the same way > -- > 9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731 > Debian Developer | Lisp Hacker | CaCert Assurer >
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
