[pacman-dev] bash scripts errexit and nounset options

Allan McRae allan at archlinux.org
Wed Mar 11 19:26:49 EDT 2009


Xavier wrote:
> On Thu, Mar 12, 2009 at 12:06 AM, Allan McRae <allan at archlinux.org> wrote:
>   
>> How does set -u work when you test if a variable exists?  e.g. in makepkg we
>> test if "$install" is non-null.
>>
>>     
>
> It can be defined and null. That just means we have to declare all
> variables we use. So this change would certainly require additional
> declarations. I guess more safety comes at a price :)

The more I look into including these flags, the more I like the idea.  
If you are not going to look into this in the near future, could you 
file a bug report so it is not forgotten?

Cheers,
Allan





More information about the pacman-dev mailing list