aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-08-26 19:26:29 +0200
committerBoris Faure <billiob@gmail.com>2017-08-26 19:26:29 +0200
commit669533fef55cede04b18a2b5f56a0c7feb242c67 (patch)
tree1c164ad52f6918625e660e6bda4ab35334f019f6
parentfix selections in the backlog. Closes T5743 (diff)
downloadterminology-669533fef55cede04b18a2b5f56a0c7feb242c67.tar.gz
do not add spurious whitespace when running a command (-e option)
-rw-r--r--src/bin/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 0f2f7e5..ad0e9d8 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -636,10 +636,11 @@ elm_main(int argc, char **argv)
{
Eina_Strbuf *strb;
strb = eina_strbuf_new();
- for(i = args; i < argc; i++)
+ eina_strbuf_append(strb, argv[args]);
+ for(i = args+1; i < argc -1; i++)
{
- eina_strbuf_append(strb, argv[i]);
eina_strbuf_append_char(strb, ' ');
+ eina_strbuf_append(strb, argv[i]);
}
cmd = eina_strbuf_string_steal(strb);
eina_strbuf_free(strb);