> Before you sit there in your arrogance and blast every suggestion
> that is put before you, why don't you READ people's posts.
I do not always use mild words, but I do read them. I have never blasted
anything without explaining why.
I see two messages where you are ignoring the fact that
:echo exists('$EMPTY')
" Echoes 0
:let $EMPTY=''
:echo exists('$EMPTY')
" Echoes 1
works at least on linux. Yes, help says that `exists()` and `!empty()` should
return the same. But on linux they don’t.
> This is a language change and so therefore should fit into the language.
> Putting a language change for the benefit of external scripts only will
> break the semantics of the language, which is why the language must
> be considered whether or not *your* personal usage will extend only
> to external "tool" scripts.
Not only. I have grep’ed my `~/.vam` folder which contains third-party plugins
and have found out a few ones that use `exists('$ENV')` like
`exists('$RAILS_ENV')` or `exists('$PGPASSWORD')` (really a few, actually). For
such a scripts you cannot change the execution flow by setting `$RAILS_ENV` to
empty. I do not know whether author of script expected these variables not to
be changed from within vim, expected `exists()` return 0 for empty or else,
thus cannot say whether there is a problem here.
It is also not the only thing that is useful for external scripts only.
`shellescape()` is needed only for them. You do not need `let $ENV` except for
the scripts.
All languages I know that can launch other processes have means of unsetting
environment variable. Python does, Perl does, *sh does, C (with POSIX libc)
does.
--
--
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.