sh: export the default PATH instead of keeping it private
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 5 Feb 2009 09:34:50 +0000 (10:34 +0100)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 5 Feb 2009 09:56:58 +0000 (10:56 +0100)
commit3efac031e58ccfe488cfb1668185468aa929b10f
tree6a98e6e97adbfd0561cdeeed353febe53b1a0882
parent6a25bb1792be4106abe011327355ab0118c1cc1a
sh: export the default PATH instead of keeping it private

sh specifies a default setting for PATH if none is set in the
environment, but up to now it didn't export this setting.  This leads to
strange effects, like sh being able to execute binaries in /usr/sbin,
but which(1) not being able to find them.  Export PATH to create more
symmetry and harmony.
bin/sh/var.c