Mail Archives: djgpp-workers/2000/08/25/09:38:34
On Fri, 25 Aug 2000, Martin Stromberg wrote:
> Eli said:
> > I was afraid that removing FOO from /dev/env/FOO will cause it to
> > fail, since /dev/env doesn't have a meaning without the variable
> > name. And the same with /dev/c/foo.
>
> Idea: Shouln't (couldn't) /dev/env be a directory containing the
> environment variables as files or something?
Not as actual files. Impossible to keep in sync with 'getenv', esp. in the
context of multiple DJGPP apps multitasking. And no, we certainly do *not*
want to create \dev\env as an actual directory, on every drive. Nor on any
particular chosen drive, for that matter.
If at all, we could make 'unlink("/dev/env/FOO");' a synonym for removing
environment variable FOO, with an error returned if it doesn't exist.
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -