summaryrefslogtreecommitdiff
path: root/lib/dotsh.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dotsh.pl')
-rw-r--r--lib/dotsh.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dotsh.pl b/lib/dotsh.pl
index 4db85e742b..8e9d9620e5 100644
--- a/lib/dotsh.pl
+++ b/lib/dotsh.pl
@@ -59,7 +59,7 @@ sub dotsh {
close (_SH_ENV);
system "rm -f /tmp/_sh_env$$";
- foreach $key (keys(ENV)) {
+ foreach $key (keys(%ENV)) {
$tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
}
eval $tmp;