From: Graham Knop Date: Mon, 23 Dec 2013 15:27:09 +0000 (-0500) Subject: fix output for old sh X-Git-Tag: v2.000_001~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=752af3ad8da1a50dd2be9231526235a78b712b94;p=p5sagit%2Flocal-lib.git fix output for old sh --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index f951e0a..a5f463a 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -380,7 +380,7 @@ sub build_bourne_env_declaration { $value =~ s/(^|\G|$_path_sep)\$$name$_path_sep/$1\$$name\${$name+$_path_sep}/g; $value =~ s/$_path_sep\$$name$/\${$name+$_path_sep}\$$name/; - qq{export ${name}="$value";\n} + qq{${name}="$value";\nexport ${name};\n} } sub build_csh_env_declaration {