On Mon, Nov 2, 2009 at 10:31 AM, Dan McGee <[email protected]> wrote: > On Mon, Nov 2, 2009 at 9:17 AM, Daenyth Blank <[email protected]> wrote: >> On Mon, Nov 2, 2009 at 10:12, Dan McGee <[email protected]> wrote: >>> 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 >>> >> >> You know... That is a pretty good point. >.> >> >> I blame it being too early in the morning :P > > Haha no worries, I had just already had my first cup of coffee. :) > > -Dan >
Actually, Daenyth's method is better than mine. If you have something like this in your makepkg.conf: #SRCDEST=/mnt/hd-ext SRCDEST=/var/cache/pacman/src my eval will fail but Daenyth's eval with regex will work. Eric

