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

Don't strip quotes from exec args #519

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

mikkeloscar
Copy link
Collaborator

Before passing a command to a command handler the quotes are stripped
from each argument in the command. This is usually the wanted behavior
but causes a problem in the case of exec where quoted arguments can be
required when passing the exec command to /bin/sh -c.

This patch makes exec a special case and doesn't strip quotes from the
arguments. It will just pass the exec command verbatim to the exec
command handler.

Fix #518

Before passing a command to a command handler the quotes are stripped
from each argument in the command. This is usually the wanted behavior
but causes a problem in the case of `exec` where quoted arguments can be
required when passing the exec command to `/bin/sh -c`.

This patch makes `exec` a special case and doesn't strip quotes from the
arguments. It will just pass the exec command verbatim to the exec
command handler.

Fix swaywm#518
ddevault added a commit that referenced this pull request Mar 18, 2016
@ddevault ddevault merged commit 378a45c into swaywm:master Mar 18, 2016
@mikkeloscar mikkeloscar deleted the maintain-exec-quotes branch March 19, 2016 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants