[Vagrant Cascadian]
> I'm not sure what to make of this one, honestly.
I would go with unsetting all of them or checking if they exist in the
chroot and unsetting if they don't. I fail to see why it would be
that much more code.
We are talking about something like this:
unset TMPDIR TEMP TEMPDIR TMP
or
for var in TMPDIR TEMP TEMPDIR TMP ; do
eval "dir=\$$var"
if [ -d /chroot/$dir ] ; then
:
else
eval "unset $var"
fi
done
Definitely more code, but not really a lot.
--
Happy hacking
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]