[pacman-dev] [PATCH 1/2] pacman-key: fix syntax error in -r arg parsing

Allan McRae allan at archlinux.org
Tue Jul 19 22:26:25 EDT 2011


On 20/07/11 07:59, Dave Reisner wrote:
> On Wed, Jul 20, 2011 at 06:50:23AM +1000, Allan McRae wrote:
>> On 20/07/11 04:28, Dave Reisner wrote:
>>> fixes: /usr/bin/pacman-key: line 437: ${1[0]}: bad substitution
>>>
>>> Signed-off-by: Dave Reisner<dreisner at archlinux.org>
>>> ---
>>> Allan, I'm pretty sure this was your intention. Feel free to correct me if I'm
>>> wrong.
>>>
>>
>> I really have no idea what my intention was there...  but ack to your fix!
>>
>> Allan
>>
>>
>
> Well, discard this, I've got better ideas (among other reasons). If we
> can only specify one action at a time,

In addition to --config and --gpgdir....  I really do not want to force 
those arguments to always be given first.

How about:

-r|--receive)     RECEIVE=1; shift; TMP=($1); KEYSERVER=${TMP[0]}; 
KEYIDS=${TMP[@]:1}; unset TMP;;

Allan



More information about the pacman-dev mailing list