[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Proposed new POSIX sh policy, version two



On Sun, Nov 26, 2006 at 04:02:45PM +0100, Gabor Gombas <gombasg@sztaki.hu> wrote:
> On Sat, Nov 25, 2006 at 10:22:06AM -0800, Thomas Bushnell BSG wrote:
> 
> > This is an excellent example of doing the wrong thing, in my opinion.
> > 
> > Why not fix the bash bug instead??
> 
> Because it is _NOT_ a bug in bash, it is a feature. AFAIR (it was some
> time ago I've looked at the code trying to fix this issue) bash
> guarantees some environment variables to always exist and to have a
> certain (initial) value, and that requires calls to the NSS functions.
> Removing support for the affected environment variables would fix the
> issue, but would break existing #!/bin/bash scripts depending on those
> variables. And I'm talking about user-written scripts, not
> Debian-provided scripts.

One could imagine a system where the variable is filled the first time
it is reclaimed. Most of the scripts don't, so most of the time, the nss
functions wouldn't be called.
That may complicate bash code, though.

Mike



Reply to: