diff --git a/custom/custom-lib.pl b/custom/custom-lib.pl index 333b24885..f435dc27b 100755 --- a/custom/custom-lib.pl +++ b/custom/custom-lib.pl @@ -481,7 +481,7 @@ foreach my $a (@{$cmd->{'args'}}) { &error(&text('run_emust', $a->{'desc'})); } $ENV{$n} = $rv; - $env .= "$n='$rv'\n"; + $env .= "$n=".quotemeta($rv)."\n"; $export .= " $n"; if ($a->{'quote'}) { $str =~ s/\$$n/"\$$n"/g;