summaryrefslogtreecommitdiff
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
parentacbf3387fa07426cd6143b5d900f79dbbcd154ca (diff)
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)
636 { 636 {
637 Eina_Strbuf *strb; 637 Eina_Strbuf *strb;
638 strb = eina_strbuf_new(); 638 strb = eina_strbuf_new();
639 for(i = args; i < argc; i++) 639 eina_strbuf_append(strb, argv[args]);
640 for(i = args+1; i < argc -1; i++)
640 { 641 {
641 eina_strbuf_append(strb, argv[i]);
642 eina_strbuf_append_char(strb, ' '); 642 eina_strbuf_append_char(strb, ' ');
643 eina_strbuf_append(strb, argv[i]);
643 } 644 }
644 cmd = eina_strbuf_string_steal(strb); 645 cmd = eina_strbuf_string_steal(strb);
645 eina_strbuf_free(strb); 646 eina_strbuf_free(strb);