[pacman-dev] [PATCH] Quote values in the arch array in example PKGBUILD

Allan McRae allan at archlinux.org
Thu Jul 9 10:46:52 EDT 2009


Dieter Plaetinck wrote:
> On Fri, 10 Jul 2009 00:32:43 +1000
> Allan McRae <allan at archlinux.org> wrote:
>
>   
>> Signed-off-by: Allan McRae <allan at archlinux.org>
>> ---
>>  doc/PKGBUILD-example.txt |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/doc/PKGBUILD-example.txt b/doc/PKGBUILD-example.txt
>> index 0477cb1..7245228 100644
>> --- a/doc/PKGBUILD-example.txt
>> +++ b/doc/PKGBUILD-example.txt
>> @@ -4,7 +4,7 @@ pkgname=patch
>>  pkgver=2.5.4
>>  pkgrel=3
>>  pkgdesc="A utility to apply patch files to original sources"
>> -arch=(i686 x86_64)
>> +arch=('i686' 'x86_64')
>>  url="http://www.gnu.org/software/patch/patch.html"
>>  license=('GPL')
>>  groups=('base-devel')
>>     
>
> Hi,
> why is this better?
>
> Dieter

It is alway good practice to quote strings in bash.  It is also weird 
that the arch array was the only non-quoted array.

Allan





More information about the pacman-dev mailing list