X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdotsh.pl;h=877467eb961371cb18a501631f833efb1ee77585;hb=80d06f2dff03a52147744439d4888c6bef091986;hp=8e9d9620e59cf982ad2a3559f02bd61299d5a9dd;hpb=4633a7c4bad06b471d9310620b7fe8ddd158cccd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/dotsh.pl b/lib/dotsh.pl index 8e9d962..877467e 100644 --- a/lib/dotsh.pl +++ b/lib/dotsh.pl @@ -53,8 +53,8 @@ sub dotsh { open (_SH_ENV, "/tmp/_sh_env$$") || die "Could not open /tmp/_sh_env$$!\n"; while (<_SH_ENV>) { chop; - /=/; - $ENV{$`} = $'; + m/^([^=]*)=(.*)/s; + $ENV{$1} = $2; } close (_SH_ENV); system "rm -f /tmp/_sh_env$$";