summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index 593fe89bd..e39294e9c 100644
--- a/scp.c
+++ b/scp.c
@@ -190,8 +190,16 @@ do_local_cmd(arglist *a)
190 190
191 if (verbose_mode) { 191 if (verbose_mode) {
192 fprintf(stderr, "Executing:"); 192 fprintf(stderr, "Executing:");
193 for (i = 0; i < a->num; i++) 193 for (i = 0; i < a->num; i++) {
194 fprintf(stderr, " %s", a->list[i]); 194 if (i == 0)
195 fprintf(stderr, " %s", a->list[i]);
196 else
197 /*
198 * TODO: misbehaves if a->list[i] contains a
199 * single quote
200 */
201 fprintf(stderr, " '%s'", a->list[i]);
202 }
195 fprintf(stderr, "\n"); 203 fprintf(stderr, "\n");
196 } 204 }
197 if ((pid = fork()) == -1) 205 if ((pid = fork()) == -1)