WP_34S: Patch for wp34s_lib.pl


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.

Index: wp34s_lib.pl
--- wp34s_lib.pl (revision 3425)
+++ wp34s_lib.pl (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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Patch for wp34s assembler Marcel Samek 0 839 06-26-2013, 05:35 PM
Last Post: Marcel Samek
  Original DM-15CC batch capacitor patch Neil Hamilton (Ottawa) 2 1,343 07-19-2012, 08:26 PM
Last Post: Gerson W. Barbosa
  [WP34S] Problem Running wp34s_lib.pl in Mac OS X Les Wright 17 4,573 03-21-2012, 06:05 PM
Last Post: Neil Hamilton (Ottawa)
  Latest update for Clonix & NoV's modules (includes DISASM patch for 41CL) Diego Diaz 9 2,754 01-26-2012, 01:34 PM
Last Post: Geir Isene
  A webserver running on a HP-41 and HPIL patch for nonpareil Khanh-Dang Nguyen Thu-Lam 10 2,916 02-01-2009, 12:59 PM
Last Post: Khanh-Dang Nguyen Thu-Lam
  txt2raw.pl: an HP-42S program listing to "raw" conversion script Thomas Okken 4 1,387 03-06-2005, 10:17 PM
Last Post: Namir

Forum Jump: