[pass] [PATCH v2] Team pass: enable multiple keys and per directory

Matthew Cengia mattcen at gmail.com
Thu Mar 20 02:06:45 CET 2014

On 2014-03-19 19:51, Josh Cartwright wrote:
> Also, note that command substitution ($() and ``) has the really
> annoying feature of removing trailing newlines...but sometimes those
> newlines are significant.  Any sane person wouldn't go putting newlines
> in filenames, however in clipboard data this can be important.
> Presumably this is the explanation of pass bizarrely using base64 to
> store clipboard data?

I've not thought very hard as to why trailing newlines would be
significant, but let's operate on the assumption that it is:

| mattcen at sonar:tmp$ x="$(printf "%s\n%s\n\n\n" foo bar; echo EOF)"
| x=${x%EOF}; echo "$x"
| foo
| bar
| mattcen at sonar:tmp$

Problem solved. Ugly, and I'd seriously question whether that's the
right problem to solve (rather than deciding whether trailing whitespace
is significant) before implementing it as a solution.

Matthew Cengia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: Digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140320/99372bd4/attachment-0001.asc>

More information about the Password-Store mailing list