5 Nov
2009
5 Nov
'09
5:03 p.m.
Daenyth Blank wrote:
On Thu, Nov 5, 2009 at 12:53, Firmicus <Firmicus@gmx.net> wrote:
Better look for a safer alternative. What about this?
PKGDEST=$(source /etc/makepkg.conf && echo $PKGDEST)
That's actually more dangerous than the eval, since you are essentially eval-ing the entire file.
Again you're right. Somehow I thought source only affected variables, but actually it does also eval each line of the sourced file. Sorry for the noise.