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

Use call instead of execute before system to run external commands #6

Merged
merged 1 commit into from
Dec 19, 2013

Conversation

a-sk
Copy link
Contributor

@a-sk a-sk commented Dec 19, 2013

Before this commit, calling of investigate produced E492: Not an editor command error.

For example I got this error in :message for bash files:
Not an editor command: firefox https://encrypted.google.com/search?q=exec&sitesearch=ss64.com^@

@keith
Copy link
Owner

keith commented Dec 19, 2013

Hmm, what else are you changing to make it open with the firefox executable? Did you just override something in this?

@justinmk
Copy link

Actually, it is odd that execute was working. execute is for evaling a string of vimscript. Does system(l:command) return a string of vimscript, or is it a shell command?

@keith
Copy link
Owner

keith commented Dec 19, 2013

Hmm yea it just returns the string output of the command I think. Which in this case I don't care about.

@keith
Copy link
Owner

keith commented Dec 19, 2013

I'm still worried about that being the root of the issue. I saw the same error message a few times during development because of unquoted URLs.

@keith
Copy link
Owner

keith commented Dec 19, 2013

I think this is still a pretty safe fix, I don't think it will mess any one up. Do you agree @justinmk

@justinmk
Copy link

Yes!

keith added a commit that referenced this pull request Dec 19, 2013
Use call instead of execute before system to run external commands
@keith keith merged commit d628fb2 into keith:master Dec 19, 2013
@keith
Copy link
Owner

keith commented Dec 19, 2013

@a-sk I'd still like to hear what you did to make it default to using firefox as the executable. I've thought about allowing customization of the commands via variables which may make whatever you did a little easier.

@a-sk
Copy link
Contributor Author

a-sk commented Dec 19, 2013

@Keithbsmiley
I don't. I use use custom xdg-open with a small patch: march-linux/mimi#4
It allows to make this work:
/usr/bin/xdg-open /usr/bin/zeal --query 'asd'
And for urls any xdg-open should work.

And of course, customization of the commands via variables would be nice.

@keith
Copy link
Owner

keith commented Dec 20, 2013

Ok cool. So as long as your patch fixed it for you we're good here. And I'll add command customization shortly.

@a-sk
Copy link
Contributor Author

a-sk commented Dec 20, 2013

Ok, thanks :)

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.

4 participants