I think because read is executed in a subshell, the variable $pass is lost by the time you reach printf. But if you group them, then read and printf execute in the same subshell.
@Jason It works fine now, thanks! On 7 February 2016 at 09:14, Lucas Hoffmann <[email protected]> wrote: > Quoting Jason A. Donenfeld (2016-02-06 19:46:16) > > I just forgot to group the commands properly. Works now: > > > http://git.zx2c4.com/password-store/commit/?id=930f01cd830815730f3f041d5e5788fccdd6d4cb > > Out of curiosity: What difference does the grouping make? > Also: You should add -r to read (see man 1p read or man bash). > > _______________________________________________ > Password-Store mailing list > [email protected] > http://lists.zx2c4.com/mailman/listinfo/password-store > >
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
