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 60682c687..ed2864250 100644
--- a/scp.c
+++ b/scp.c
@@ -198,8 +198,16 @@ do_local_cmd(arglist *a)
198 198
199 if (verbose_mode) { 199 if (verbose_mode) {
200 fprintf(stderr, "Executing:"); 200 fprintf(stderr, "Executing:");
201 for (i = 0; i < a->num; i++) 201 for (i = 0; i < a->num; i++) {
202 fmprintf(stderr, " %s", a->list[i]); 202 if (i == 0)
203 fmprintf(stderr, " %s", a->list[i]);
204 else
205 /*
206 * TODO: misbehaves if a->list[i] contains a
207 * single quote
208 */
209 fmprintf(stderr, " '%s'", a->list[i]);
210 }
203 fprintf(stderr, "\n"); 211 fprintf(stderr, "\n");
204 } 212 }
205 if ((pid = fork()) == -1) 213 if ((pid = fork()) == -1)