diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-23 08:07:32 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-23 08:07:32 -0800 |
commit | f9c91277f356285b58c4e9a1c9c15248676ce9ab (patch) | |
tree | af619cec62beba129cfedb6bcfdf73df962cd7c7 /util/tracediff | |
parent | 6d574e9cff50e7c6bacd6f3d16e84810c88a2647 (diff) | |
download | gem5-f9c91277f356285b58c4e9a1c9c15248676ce9ab.tar.xz |
Quote args properly in tracediff.
util/tracediff:
Quote simulator args so args with spaces get handled correctly.
--HG--
extra : convert_revision : b48677bc712be17e6e50ca35680e757ba9364692
Diffstat (limited to 'util/tracediff')
-rwxr-xr-x | util/tracediff | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/tracediff b/util/tracediff index fac4f0ec0..0aa579a7d 100755 --- a/util/tracediff +++ b/util/tracediff @@ -1,5 +1,5 @@ #! /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 @@ -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 -$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 |"; |