<div dir="ltr">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). </div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 2:41 PM, Christoph Egger <span dir="ltr"><<a href="mailto:christoph@christoph-egger.org" target="_blank">christoph@christoph-egger.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
Brian Mattern <<a href="mailto:brian.mattern@gmail.com">brian.mattern@gmail.com</a>> writes:<br>
> Is the echo necessary?<br>
<br>
Well, dmenu reads from stdin so you need to echo into it (or do some<br>
`ls | sed` which forks) [0]. For xdotool you could get around by doing a<br>
`xdotool type "$(pass $passentry)"` but then everyone able to run `ps`<br>
or anything similar on your system can read xdotool's comandline<br>
parameters so the `echo -n "type " ; pass` is the "safe" solution.<br>
<br>
Christoph<br>
<br>
[0] <a href="http://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu" target="_blank">http://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu</a><br>
uses `printf` but does that part basically the same way<br>
<span class="HOEnZb"><font color="#888888">--<br>
9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731<br>
Debian Developer | Lisp Hacker | CaCert Assurer<br>
</font></span></blockquote></div><br></div>