If I do

    vim -u NONE -c 'unlet $PATH'

I get “E488: Trailing characters” error.

That means that there is no way to get rid of environment variable after it was 
set which may be essential if tools using variables check for their existence, 
not for their contents (e.g. in tcsh scripts checking for emptyness and for 
existence are different constructs and they are rarely checked both (and 
non-existent variables expand to errors, not to empty values), it is also not 
uncommon to write “if 'VARNAME' in os.environ:” or use EAFP principle in python 
in which cases empty string is treated just like any other value).

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui