<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 26, 2016 at 10:05 AM, Lucas Hoffmann <span dir="ltr"><<a href="mailto:l-m-h@web.de" target="_blank">l-m-h@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Quoting Dashamir Hoxha (2016-01-26 08:11:44)<br>
<span class="">>    But, from the man page:<br>
>    "PASSWORD_STORE_GPG_OPTS: Additional options to be passed to all<br>
>    invocations of GPG."<br>
>    It does not say that it is an array. And if it is a string, then there are<br>
>    no problems<br>
>    inside the script. <br>
<br>
</span>Environment variables are always strings.  There is no other<br>
possibility.  Non the less arrays are the best choice for use *inside*<br>
one script.<br>
<br>
I would not advise the use of aliases inside scripts.  Functions are<br>
more powerful and less error prone (less quoting issues).  From the bash<br></blockquote><div><br></div><div>OK, Lucas. I will try using functions.</div><div>But first let's make it work, and then let's make it better.</div><div>Agree?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
man page:<br>
<br>
> The rules concerning the definition and use of aliases are somewhat<br>
> confusing. Bash always reads at least one complete line of input<br>
> before executing any of the commands on that line.  Aliases are<br>
> expanded when a command is read, not when it is executed.  Therefore,<br>
> an alias definition appearing on the same line as another command does<br>
> not take effect until the next line of input is       read.  The<br>
> commands following the alias definition on that line are not affected<br>
> by the new alias.<br>
<br>
(The fish shell for example does not imlement aliases at all, only<br>
functions.)<br>
<span class="HOEnZb"><font color="#888888"><br>
Lucas<br>
</font></span></blockquote></div><br></div></div>