Quote args properly in tracediff.
authorSteve Reinhardt <stever@eecs.umich.edu>
Mon, 23 Feb 2004 16:07:32 +0000 (08:07 -0800)
committerSteve Reinhardt <stever@eecs.umich.edu>
Mon, 23 Feb 2004 16:07:32 +0000 (08:07 -0800)
util/tracediff:
    Quote simulator args so args with spaces get handled correctly.

--HG--
extra : convert_revision : b48677bc712be17e6e50ca35680e757ba9364692

util/tracediff

index fac4f0ec0926d4c26f4d73a33edc0aeca9efafe9..0aa579a7d14a671b13e394d6a0ab19bf7b2a10cb 100755 (executable)
@@ -1,5 +1,5 @@
 #! /usr/bin/env perl
 #! /usr/bin/env perl
-# Copyright (c) 2003 The Regents of The University of Michigan
+# Copyright (c) 2003-2004 The Regents of The University of Michigan
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -39,7 +39,7 @@ $sim2 = shift;
 
 # Everything else on the command line is taken to be an m5 argument to
 # be given to both invocations
 
 # Everything else on the command line is taken to be an m5 argument to
 # be given to both invocations
-$simargs = join(' ', @ARGV);
+$simargs = '"' . join('" "', @ARGV) . '"';
 
 $cmd1 = "$sim1 $simargs --stats:file=tracediff-$$-1.stats 2>&1 |";
 $cmd2 = "$sim2 $simargs --stats:file=tracediff-$$-2.stats 2>&1 |";
 
 $cmd1 = "$sim1 $simargs --stats:file=tracediff-$$-1.stats 2>&1 |";
 $cmd2 = "$sim2 $simargs --stats:file=tracediff-$$-2.stats 2>&1 |";