From: Graham Knop Date: Wed, 20 Nov 2013 05:36:51 +0000 (-0500) Subject: silence cmd commands when used in batch file X-Git-Tag: v2.000_000~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45277afe3312a0bd747cc1a8770c8c385a34b59a;p=p5sagit%2Flocal-lib.git silence cmd commands when used in batch file --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index 68baba7..ee36e1a 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -357,8 +357,8 @@ sub build_cmd_env_declaration { my ($class, $name, $args) = @_; my $value = $class->_interpolate($args, '%', '%', qr([()!^"<>&|]), '^'); defined $value - ? qq{set $name=$value\n} - : qq{set $name=\n}; + ? qq{\@set $name=$value\n} + : qq{\@set $name=\n}; } sub build_powershell_env_declaration { my ($class, $name, $args) = @_;