[arch-dev-public] [signoff] devtools-0.8.0

Dan McGee dpmcgee at gmail.com
Mon Nov 2 10:12:04 EST 2009


On Mon, Nov 2, 2009 at 8:08 AM, Daenyth Blank <daenyth+arch at gmail.com> wrote:
> On Mon, Nov 2, 2009 at 06:45, Eric Bélanger <snowmaniscool at gmail.com> 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


More information about the arch-dev-public mailing list