[pacman-dev] bash scripts errexit and nounset options

Allan McRae allan at archlinux.org
Sat Apr 11 22:09:00 EDT 2009


Dan McGee wrote:
> On Wed, Mar 11, 2009 at 6:26 PM, Allan McRae <allan at archlinux.org> wrote:
>   
>> 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?
>>     
>
> Poke to one of you two? Or did a report get filed?
>
>   

Sure...  http://bugs.archlinux.org/task/13767 .   You are one of the 
assignness!

Allan






More information about the pacman-dev mailing list