On 2014-02-02, ZyX wrote:
> > Historically environment variables cannot be deleted, only made empty.
> > It's not a good idea to check for existence, check for it being
> > non-empty instead.
>
> Do not tell it me. There is an example: if PYTHONDUMPREFS variable
> is set for debug build of python, no matter whether or not it is
> empty, python will dump references.
>
> There is a way to delete variables on most system. I would expect
> vim to support deleting them. Also what for there is working
> `exists('$VAR')` if it is supposed to be `empty('$VAR')`? The
> statement in the doc (“could also be done by comparing with an
> empty string”) is not true, there is a difference between existing
> and empty in exists() output.
I've been frustrated by Vim's inability to unset environment
variables on occasion, too. I don't know what systems would not
support this. On my Ubuntu Linux system, the unsetenv(3) man page
says that it conforms to 4.3BSD and POSIX.1-2001.
Regards,
Gary
--
--
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.