Escaping dollar signs
authorAndrew DeFaria <A.DeFaria@cpanel.net>
Tue, 20 Sep 2022 00:02:55 +0000 (17:02 -0700)
committerAndrew DeFaria <A.DeFaria@cpanel.net>
Tue, 20 Sep 2022 00:02:55 +0000 (17:02 -0700)
lib/Speak.pm
rc/set_path

index 4be475d..9cb9441 100644 (file)
@@ -126,7 +126,8 @@ Returns:
   # Log message to log file if $log was passed in.
   $log->msg($msg);
 
-  $msg = quotemeta $msg;
+  #$msg = quotemeta $msg;
+  $msg =~ s/\$/\\\$/g;
 
   my ($status, @output) = Execute "/usr/local/bin/gt \"$msg\"";
 
index 97ff1a2..104ab8f 100644 (file)
@@ -102,6 +102,7 @@ path_dirs="$path_dirs\
   /opt/ibm/rationalsdlc/clearquest/bin\
   /opt/ibm/rationalsdlc/clearquest\
   /opt/ibm/rationalsdlc/common\
+  /opt/mycroft-core/bin\
   /opt/perforce/bin\
   /opt/perforce/sbin\
   /usr/sbin\