Hi Pavol
On 2015-07-20 Monday at 23:38 +0200 Roland Eggner wrote: > On 2015-07-17 Friday at 10:47 -0400 Pavol Juhas wrote: > > On Fri, Jul 17, 2015 at 09:44:55AM +0200, Roland Eggner wrote: > > ... > > > On 2015-07-16 Thursday at 18:52 +0000 [email protected] wrote: > > ... > > > > 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' > > ... > > I reproduced with vim-7.4.529: > > :e `=$HOME . '/.vimrc'` > E15: Invalid expression: /home/roland . '/.vimrc' > "`=/home/roland . '/.vimrc'`" [New DIRECTORY] > :e `=expand('$HOME') . '/vimrc'` > :ls > 1 # "`=/home/roland . '/.vimrc'`" line 1 > 3 %a "~/.vimrc" line 1 I discovered another workaround, which might shed some light on the nature of the problem: HOME_quoted="\"$HOME\"" vim -u NONE -i NONE -N (1) :e `=$HOME . '/.vimrc'` E15: Invalid expression: /home/roland . '/.vimrc' "`=/home/roland . '/.vimrc'`" [New DIRECTORY] (2) :e `='"' . $HOME . '"/.vimrc'` E15: Invalid expression: /home/roland . '"/.vimrc' "`='"' . /home/roland . '"/.vimrc'`" [New DIRECTORY] (3) :e `=$HOME_quoted . '/.vimrc'` :ls 1 "`=/home/roland . '/.vimrc'`" line 1 2 # "`='"' . /home/roland . '"/.vimrc'`" line 1 3 %a "~/.vimrc" line 1 My conclusions: (1) Quotes are missing → E15 (2) Quotes surrounding the variable reference are removed upon evaluation too early → E15 (3) Quotes contained in the variable value avoid E15 _and_ are removed upon evaluation afterwards. -- Best regards, Roland Eggner -- -- 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/d/optout.
pgpvH232qOpx5.pgp
Description: PGP signature
