From: Graham Knop Date: Wed, 20 Nov 2013 05:37:21 +0000 (-0500) Subject: properly escape characters in single value env vars X-Git-Tag: v2.000_000~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=14271d9f74053aa0e004df7755ad89fd0c594ddf;p=p5sagit%2Flocal-lib.git properly escape characters in single value env vars --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index ee36e1a..489159c 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -377,7 +377,7 @@ sub _interpolate { my ($class, $args, $start, $end, $escape, $escape_char) = @_; return unless defined $args; - return $args + $args = [ $args ] unless ref $args; return unless @$args;