The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

WP_34S: Patch for
Message #1 Posted by Marcel Samek on 5 July 2013, 12:49 p.m.

The patch below fixes a problem that happens if the executables are being run from a path that has spaces in it. The patch simply encloses the path in quotes.

---	(revision 3425)
+++	(working copy)
@@ -798,7 +798,7 @@
     die_msg(this_function((caller(0))[3]), "Cannot locate daughter script '$prog' in current directory or '$script_dir'.");
   $location =~ s:\\:/:g;
-  $cmd = "${location}$prog $cmd_line";
+  $cmd = "\"${location}\"$prog $cmd_line";
   $cmd .= " -e2so"; # Make sure to slurp up the STDERR to STDOUT so we can see any errors.

# Force the colour mode to be off if in debug mode because with this damn MS-DOS STDERR

[ Return to Index | Top of Index ]

Go back to the main exhibit hall