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

Increase compatibility with tcsh #869

Merged
merged 2 commits into from
Jun 3, 2016
Merged

Increase compatibility with tcsh #869

merged 2 commits into from
Jun 3, 2016

Conversation

tsne
Copy link
Contributor

@tsne tsne commented May 22, 2016

Hi,

some of the :Go* commands report errors when tcsh is configured in Vim. This pull request aims to resolve these errors.
I tested the commands with tcsh and sh configured, and here it works fine. Maybe someone else can double check if everything still works smoothly with her/his shell.

@@ -196,7 +196,7 @@ function! go#cmd#Test(bang, compile, ...)

if a:0
" expand all wildcards(i.e: '%' to the current file name)
let goargs = map(copy(a:000), "expand(v:val)")
let goargs = map(copy(a:000), "shellescape(expand(v:val))")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just add another line below, so it should be like:

let goargs = map(copy(a:000), "expand(v:val)")
let goargs = go#util#Shelllist(goargs, 1)

@fatih
Copy link
Owner

fatih commented Jun 1, 2016

Thanks @tsne for the contribution. My macbook is broken and in service, using a four year old one. Just had time to look at it.

@tsne
Copy link
Contributor Author

tsne commented Jun 3, 2016

Hi @fatih.

Thanks for reviewing. I fixed the issue with the extra line for Shelllist and some escaping issues. Unfortunately we can't get rid of the shellescape calls here.

@fatih fatih merged commit 28d6c00 into fatih:master Jun 3, 2016
@fatih
Copy link
Owner

fatih commented Jun 3, 2016

Thanks @tsne 👍

@tsne tsne deleted the tcsh-fixes branch June 3, 2016 19:24
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

Successfully merging this pull request may close these issues.

2 participants