<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 25, 2016 at 8:29 PM, Matthew Monaco <span dir="ltr"><<a href="mailto:matt@monaco.cx" target="_blank">matt@monaco.cx</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 01/25/2016 12:16 PM, Dashamir Hoxha wrote:<br>
><br>
><br>
> On Mon, Jan 25, 2016 at 8:01 PM, Lenz Weber <<a href="mailto:mail@lenzw.de">mail@lenzw.de</a><br>
</span><span class="">> <mailto:<a href="mailto:mail@lenzw.de">mail@lenzw.de</a>>> wrote:<br>
><br>
> I'm not 100% but what you are doing will most likely split up GPG_OPTS that<br>
> contain spaces into multiple options. If you want to go that way, use functions.<br>
><br>
><br>
> I think that functions in bash cannot return values (except a return status: 0,<br>
> 1, etc.)<br>
> GPG options that contain spaces?! This sounds weird. We can check the manual<br>
> of GPG about it.<br>
><br>
><br>
<br>
</span>Anything on stderr/stdout is a "returned value" in the same sense that the<br>
existing commands work.<br>
<br>
gpg doesn't have option names with spaces, but the arguments certainly can. You<br></blockquote><div><br></div><div style="color:rgb(0,0,0);font-size:12.8px">You are right, arguments can have.</div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px">But, from the man page:</div><div style="color:rgb(0,0,0);font-size:12.8px">"<i style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px">PASSWORD_STORE_GPG_OPTS: </i><span style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px">Additional options to be passed to all invocations of GPG.</span>"</div><div style="color:rgb(0,0,0);font-size:12.8px">It does not say that it is an array. And if it is a string, then there are no problems</div><div><span style="color:rgb(0,0,0);font-size:12.8px">inside the script. </span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
need to be careful to preserve them, and arrays in bash are the best way. RE<br>
your other email: "${var[@]}" is perfectly good bash, similar to "$@" but it<br>
only works when written just like that, you can't embed the expansion in a<br>
longer string. So if you try to use aliases you'll likely have the same<br>
syntactical issue.<br>
<span class=""><br>
><br>
> Regards,<br>
> Lenz<br>
><br>
> Am 25.01.2016 um 19:45 schrieb Dashamir Hoxha:<br>
>> I see that `pass` is more advanced than what I initially thought.<br>
>> It allows several people to have access to passwords, and they<br>
>> all can synchronize through git.<br>
>><br>
>> So, replacing asymmetric encryption with symmetric encription<br>
>> is not an option. However I still think that *both* of them can be supported,<br>
>> and the user can choose which one is more suitable for him.<br>
>> And actually this will not make the script more complicated,<br>
>> but hopefully simpler.<br>
>><br>
>> I have already started to work on it. The first step was to factor out<br>
>> the encrypt and decript commands:<br>
>> <a href="https://github.com/dashohoxha/password-store/commit/af32b5c8c863a3245b6a3bd752f503f768033361" rel="noreferrer" target="_blank">https://github.com/dashohoxha/password-store/commit/af32b5c8c863a3245b6a3bd752f503f768033361</a><br>
>> Please check it out, for code review and to make sure that<br>
>> I am not missing something.<br>
>><br>
>> Thanks,<br>
>> Dashamir<br>
>><br>
>> On Sun, Jan 24, 2016 at 9:36 PM, Lenz Weber <<a href="mailto:mail@lenzw.de">mail@lenzw.de</a><br>
</span><span class="">>> <mailto:<a href="mailto:mail@lenzw.de">mail@lenzw.de</a>>> wrote:<br>
>><br>
>> Or you use two different keys for a directory.<br>
>><br>
>><br>
>> pass init -p subdir keyid1 keyid2<br>
>><br>
>> now both people can read it<br>
>><br>
>> Am 24.01.2016 um 21:04 schrieb Christoph Egger:<br>
>> > Hi!<br>
>> ><br>
</span>>> > Aleksandr Pasechnik <<a href="mailto:al@megamicron.net">al@megamicron.net</a> <mailto:<a href="mailto:al@megamicron.net">al@megamicron.net</a>>><br>
<span class="">>> writes:<br>
>> >> How does the key sharing work?<br>
>> ><br>
>> > You can use a different, shared key for some subdirectories<br>
>> > We're doing this a lot here<br>
>> ><br>
>> > Christoph<br>
>> > _______________________________________________<br>
>> > Password-Store mailing list<br>
</span>>> > <a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a> <mailto:<a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a>><br>
<span class="">>> > <a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
>> ><br>
>> _______________________________________________<br>
>> Password-Store mailing list<br>
</span>>> <a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a> <mailto:<a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a>><br>
<div class=""><div class="h5">>> <a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
>><br>
>><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Password-Store mailing list<br>
> <a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
> <a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
><br>
<br>
_______________________________________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
<a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
</div></div></blockquote></div><br></div></div>