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 /include | |
parent | swaybar: move headers to include/bar (diff) | |
parent | Add quotes to multiword arguments. (diff) | |
download | sway-55ac868898df8acc790dcd2ec56e294e89df5ea1.tar.gz sway-55ac868898df8acc790dcd2ec56e294e89df5ea1.tar.zst sway-55ac868898df8acc790dcd2ec56e294e89df5ea1.zip |
Merge pull request #471 from mikkeloscar/fix-exec-quotes
Add quotes to multiword arguments.
Diffstat (limited to 'include')
-rw-r--r-- | include/stringop.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/stringop.h b/include/stringop.h index bb681bcd..7c29a745 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -31,6 +31,11 @@ int unescape_string(char *string); | |||
31 | char *join_args(char **argv, int argc); | 31 | char *join_args(char **argv, int argc); |
32 | char *join_list(list_t *list, char *separator); | 32 | char *join_list(list_t *list, char *separator); |
33 | 33 | ||
34 | /** | ||
35 | * Add quotes around any argv with whitespaces. | ||
36 | */ | ||
37 | void add_quotes(char **argv, int argc); | ||
38 | |||
34 | // split string into 2 by delim. | 39 | // split string into 2 by delim. |
35 | char *cmdsep(char **stringp, const char *delim); | 40 | char *cmdsep(char **stringp, const char *delim); |
36 | // Split string into 2 by delim, handle quotes | 41 | // Split string into 2 by delim, handle quotes |