Mail Archives: djgpp-workers/1999/01/28/02:35:05
On Wed, 27 Jan 1999, DJ Delorie wrote:
> > We need to be careful with this. !proxy uses a leading space,
>
> Huh? There's a !proxy environment variable?
Yes. `system' passes the !proxy parameters in an environment variable
called " !proxy" (with the leading blank), instead of putting !proxy
in the DOS command tail, like `spawn*' do. This is how the child
knows whether it needs to expand wildcards or not.
> > so at least leading whitespace should be left alone.
>
> Those are the biggest problem - spaces around the '=' means that the
> name of the variable has a trailing space, and the value has a leading
> space.
I agree. But I suggest that we be conservative in solving this.
E.g., leading space in the value is not always bad (when I mentioned
leading space, I meant the leading blank in the variable *name*,
though).
So I think that the special treatment should be reserved to $DJGPP
alone. I don't think we ever had any problems with other variables,
so why fix something which ain't broken?
- Raw text -