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

Using multiple nested " " in run_cmd #78

Open
phcerdan opened this issue Jan 10, 2017 · 1 comment
Open

Using multiple nested " " in run_cmd #78

phcerdan opened this issue Jan 10, 2017 · 1 comment

Comments

@phcerdan
Copy link

phcerdan commented Jan 10, 2017

I want to run these kind of commands with from layout hi.window.sh
vim -c "echo 'Hi, how are you?'" ~/tmp/a.md

But I cannot from due to the extra " " needed for run_cmd "vim -c "echo 'Hi, how are you?'" ~/tmp/a.md "

Is there any workaround to do this? any alternative to run_cmd without the "" . Or any other symbol with same meaning that " " or ' '?

Thanks

@NicoGartmann
Copy link

NicoGartmann commented Jun 25, 2024

I stumpled over the same problem and just found out that you can just escape the inner " with \". So for your example
run_cmd "vim -c \"echo 'Hi, how are you?'\" ~/tmp/a.md"

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