On Mon, Nov 2, 2009 at 8:08 AM, Daenyth Blank <[email protected]> wrote:
> On Mon, Nov 2, 2009 at 06:45, Eric Bélanger <[email protected]> wrote:
>> Another way is to get the SRCDEST and PKGDEST without sourcing the 
>> makepkg.conf:
>>
>>  eval $(grep SRCDEST /etc/makepkg.conf)
>>  eval $(grep PKGDEST /etc/makepkg.conf)
>>
>
> This would have to be
> eval $(grep '^SRCDEST=' /etc/makepkg.conf
> so that it wouldn't get any commented lines.

I'm pretty sure eval-ing a commented line won't do a whole lot:
$ eval '#SRCDEST=foobar'
$ echo $SRCDEST

$ eval 'SRCDEST=foobar'
$ echo $SRCDEST
foobar

Reply via email to