diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -199,8 +199,16 @@ do_local_cmd(arglist *a) | |||
199 | 199 | ||
200 | if (verbose_mode) { | 200 | if (verbose_mode) { |
201 | fprintf(stderr, "Executing:"); | 201 | fprintf(stderr, "Executing:"); |
202 | for (i = 0; i < a->num; i++) | 202 | for (i = 0; i < a->num; i++) { |
203 | fmprintf(stderr, " %s", a->list[i]); | 203 | if (i == 0) |
204 | fmprintf(stderr, " %s", a->list[i]); | ||
205 | else | ||
206 | /* | ||
207 | * TODO: misbehaves if a->list[i] contains a | ||
208 | * single quote | ||
209 | */ | ||
210 | fmprintf(stderr, " '%s'", a->list[i]); | ||
211 | } | ||
204 | fprintf(stderr, "\n"); | 212 | fprintf(stderr, "\n"); |
205 | } | 213 | } |
206 | if ((pid = fork()) == -1) | 214 | if ((pid = fork()) == -1) |