aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorAaron Ouellette <aouellette2016@gmail.com>2016-03-18 17:09:11 -0400
committerAaron Ouellette <aouellette2016@gmail.com>2016-03-18 17:09:11 -0400
commit8af6a419ec6f4cfc596aabd5c820e7033cc760c4 (patch)
treed958fae88ea43df2e707830e5f6ca9bf6975a491 /sway/commands.c
parent133009b652e794bee083dbeb2fbdd2db787e84c6 (diff)
parent378a45cec23b76732a19d0027e1bba3ef2bf3752 (diff)
downloadsway-8af6a419ec6f4cfc596aabd5c820e7033cc760c4.tar.xz
Merge branch 'master' of git://github.com/SirCmpwn/sway into swaylock
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 3b8556ca..ebb63691 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -362,10 +362,8 @@ 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);
}
@@ -2869,10 +2867,12 @@ struct cmd_results *handle_command(char *_exec) {
//TODO better handling of argv
int argc;
char **argv = split_args(cmd, &argc);
- int i;
- for (i = 1; i < argc; ++i) {
- if (*argv[i] == '\"' || *argv[i] == '\'') {
- strip_quotes(argv[i]);
+ if (strcmp(argv[0], "exec") != 0) {
+ int i;
+ for (i = 1; i < argc; ++i) {
+ if (*argv[i] == '\"' || *argv[i] == '\'') {
+ strip_quotes(argv[i]);
+ }
}
}
struct cmd_handler *handler = find_handler(argv[0], CMD_BLOCK_END);