diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-24 18:33:06 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-24 18:33:06 -0500 |
commit | 55ac868898df8acc790dcd2ec56e294e89df5ea1 (patch) | |
tree | b4f10872f5182c8db7fa9629d1567e34e8373ef1 /sway/commands.c | |
parent | ed227f5664196d85194d63d01a5382499867a386 (diff) | |
parent | 32ae26e519eeb6a5108f1d82fe36ce5b6ef65af3 (diff) |
Merge pull request #471 from mikkeloscar/fix-exec-quotes
Add quotes to multiword arguments.
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 9f6e5032..ae5c48e6 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -361,8 +361,10 @@ static struct cmd_results *cmd_exec_always(int argc, char **argv) { return error; } + add_quotes(argv + 1, argc - 1); tmp = join_args(argv + 1, argc - 1); } else { + add_quotes(argv, argc); tmp = join_args(argv, argc); } |