git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b033b55
)
fish: glob should only print commands when trace mode is enabled.
author
Richard Jones
<rjones@redhat.com>
Fri, 10 Sep 2010 12:26:10 +0000
(13:26 +0100)
committer
Richard Jones
<rjones@redhat.com>
Fri, 10 Sep 2010 12:26:10 +0000
(13:26 +0100)
fish/glob.c
patch
|
blob
|
history
diff --git
a/fish/glob.c
b/fish/glob.c
index
2731b2f
..
1a18b37
100644
(file)
--- 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 */