From 8cb8ad081b52bbb3d26df4d62a0dc39db5f96e04 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 5 Dec 2011 12:43:26 -0600 Subject: [PATCH] softIoc: Strip single-quote chars from arg Most shells strip the single-quote chars from arguments, but on win32-x86 this is not happening so we need to do it ourselves. The single quotes are important to prevent un-escaping of things that shouldn't be unescaped. --- src/softIoc/makeInstallDir.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/softIoc/makeInstallDir.pl b/src/softIoc/makeInstallDir.pl index c9d6d2a75..96c305711 100644 --- a/src/softIoc/makeInstallDir.pl +++ b/src/softIoc/makeInstallDir.pl @@ -14,6 +14,8 @@ die "Path to INSTALL_LOCATION missing\n" unless @ARGV == 1; my $path = shift; $path =~ s/\\/\\\\/gx; +$path =~ s/^'//; +$path =~ s/'$//; print "/* THIS IS A GENERATED FILE. DO NOT EDIT! */\n", "\n",