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 43ca3fa09..4a7f73ab3 100644
--- a/scp.c
+++ b/scp.c
@@ -192,8 +192,16 @@ do_local_cmd(arglist *a)
192 192
193 if (verbose_mode) { 193 if (verbose_mode) {
194 fprintf(stderr, "Executing:"); 194 fprintf(stderr, "Executing:");
195 for (i = 0; i < a->num; i++) 195 for (i = 0; i < a->num; i++) {
196 fmprintf(stderr, " %s", a->list[i]); 196 if (i == 0)
197 fmprintf(stderr, " %s", a->list[i]);
198 else
199 /*
200 * TODO: misbehaves if a->list[i] contains a
201 * single quote
202 */
203 fmprintf(stderr, " '%s'", a->list[i]);
204 }
197 fprintf(stderr, "\n"); 205 fprintf(stderr, "\n");
198 } 206 }
199 if ((pid = fork()) == -1) 207 if ((pid = fork()) == -1)