summaryrefslogtreecommitdiffstats
path: root/fish/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/glob.c')
-rw-r--r--fish/glob.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fish/glob.c b/fish/glob.c
index 2731b2f9..1a18b370 100644
--- a/fish/glob.c
+++ b/fish/glob.c
@@ -140,12 +140,14 @@ glob_issue (char *cmd, int argc,
argv[argc] = NULL;
again:
- printf ("%s", argv[0]);
- for (i = 1; i < argc; ++i) {
- argv[i] = globs[i][posn[i]];
- printf (" %s", argv[i]);
+ if (guestfs_get_trace (g)) {
+ printf ("%s", argv[0]);
+ for (i = 1; i < argc; ++i) {
+ argv[i] = globs[i][posn[i]];
+ printf (" %s", argv[i]);
+ }
+ printf ("\n");
}
- printf ("\n");
if (issue_command (argv[0], &argv[1], NULL) == -1)
*r = -1; /* ... but don't exit */