On 3 February 2014, LCD 47 <[email protected]> wrote:
> On 3 February 2014, ZyX <[email protected]> wrote:
> > >     IIRC, SysV had putenv(3), while BSD had setenv(3).  The latter
> > > had a corresponding unsetenv(3), while the former didn't.
> > >
> > > > On my Ubuntu Linux system, the unsetenv(3) man page says that it
> > > > conforms to 4.3BSD and POSIX.1-2001.
> > >
> > >     POSIX?  As Wietse Venema used to put it, you're young and
> > > impatient. ;)
> >
> > You mean SysV does not have C function for unsetting environment?
> [...]
>
>     Well, historically yes.  OSF/1 2.0 (some 20+ years ago) didn't
> have any way to unset environment, then OSF/1 3.2 had unsetenv(3), but
> it wasn't declared by default, or something like that.  Sadly I don't
> remember anything about Solaris.

    A quick search reveals this:

        http://www.greenend.org.uk/rjk/tech/putenv.html

    According to this guy unsetenv() was added in Solaris 5.10, which is
now ~10 years old.  On Solaris you could modify *environment directly,
but IIRC on OSF/1 that was explicitly forbidden.

    /lcd

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui