dynium / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

expansion of environment variables fails in Vim backtick expression #385

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

    vim -u NONE -i NONE -N
    :e `=$HOME . '/.vimrc'` 

What is the expected output? What do you see instead?

Vim should open the .vimrc file in my HOME directory.  Instead I see the 
following error:

    E15: Invalid expression: /Users/pjuhas . '/.vimrc'

It seems that $HOME gets expanded _before_ parsing the VimL expression in 
backticks.  This would be OK for shell-expanded backtick expressions, but not 
for Vim expressions of the `=<expr>` kind.

What version of the product are you using? On what operating system?

Vim 7.4.712 on OS X Yosemite 10.10.4.  This is likely independent of the OS.

Original issue reported on code.google.com by pavol.juhas@gmail.com on 16 Jul 2015 at 6:51

GoogleCodeExporter commented 9 years ago
Documentation has been updated and behaviour clarified as of 
https://code.google.com/p/vim/source/detail?r=349e6c01f35d00f6035aec42fc43d02173
eb00cc

Original comment by chrisbr...@googlemail.com on 11 Aug 2015 at 8:21

GoogleCodeExporter commented 9 years ago
I would say that status should change to WontFix, not Fixed in this case. 
Documenting this does not make it look like a valid behaviour.

Original comment by zyx....@gmail.com on 12 Aug 2015 at 5:57