[pacman-dev] [PATCH] repo-add: added a realpath implementation in bash

Yun Zheng Hu yunzheng.hu at gmail.com
Wed Feb 11 17:10:51 EST 2009


On Wed, Feb 11, 2009 at 5:31 PM, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
> On Wed, Feb 11, 2009 at 6:59 AM, Xavier <shiningxc at gmail.com> wrote:
>> On Wed, Feb 11, 2009 at 10:15 AM, Allan McRae <allan at archlinux.org> wrote:
>>>
>>>
>>> I haven't looked at this in detail yet, but if this solution is more
>>> portable and has no feature loss, why not use it by default?
>>>
>>
>> I had the same question :P
>
> My guess would be optimization - that calling a C binary may be faster
> than a bash loop. Not sure though, just a guess.

readlink and realpath would be faster i think, but not sure if that
really matters for repo-add. I'll submit a new patch later which will
replace readlink and realpath with the bash implementation.


More information about the pacman-dev mailing list