Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vimproc#system() returns different result compared to builtin system() #239

Closed
lambdalisue opened this issue Feb 12, 2016 · 2 comments
Closed

Comments

@lambdalisue
Copy link

With vimproc 9.2, Vim 7.4.1246 in Ubuntu 15 (64bit).

echo printf('"%s"', system('echo @{upstream}'))
echo printf('"%s"', vimproc#system('echo @{upstream}'))

The code above show

"@{upstream}
"
"@u @p @s @t @r @e @a @m
"

As long as vimproc#system() is an alternative method of builtin system(), the result should be equal.
Additionally, I guess that you handle {} because of ${VARIABLE} context. If so you probably need to handle {} only when the leading character is $ (or is there anything what I don't know?)

@lambdalisue
Copy link
Author

:h vimshell-tips-block

@Shougo
Copy link
Owner

Shougo commented Feb 13, 2016

Yes, it is feature.
And zsh same behaves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants