Whamcloud - gitweb
Properly quote command for tbox_absorb_log.
authorgord-fig <gord-fig>
Thu, 22 Aug 2002 21:06:28 +0000 (21:06 +0000)
committergord-fig <gord-fig>
Thu, 22 Aug 2002 21:06:28 +0000 (21:06 +0000)
lustre/tests/tbox.sh

index 6e1b211..337e1b8 100644 (file)
@@ -74,8 +74,13 @@ tbox_exit() {
 
 # Run a subprogram, but stop it from sending its own tinderbox
 # messages.
-tbox_dont_start_log() {
-  eval 'TBOX_LOG= '"$@"
+tbox_absorb_log() {
+  # This probably doesn't do what you think it does... it only prepends
+  # TBOX_LOG= to our arguments.
+  set TBOX_LOG= "$@"
+
+  # Now evaluate the command.
+  eval "$@"
 }
 
 # Start the log for a given tree.