Environment handling broken in /bin/sh with changes to {get,set,put}env()

Andrey Chernov ache at nagual.pp.ru
Sat Jul 7 19:18:38 UTC 2007


On Sat, Jul 07, 2007 at 01:51:11PM -0500, Sean C. Farley wrote:
> I agree that it would be faster for a subset of an existing environ.  On
> the other hand, in the case of emptying the environment, my method would
> be faster since no deallocation, allocation nor setenv() calls would be
> called assuming putenv() was not used.  I could try a few tests to see
> what is faster in which case, but I do not think environ changes happen
> often enough to make speed a factor.

Well, lets go with that.

-- 
http://ache.pp.ru/


More information about the freebsd-current mailing list