Fix recursion bug in the lookup sub of the env script.
Dan Brook [Sun, 31 Oct 2010 18:13:00 +0000 (18:13 +0000)]
script/env

index cfa7493..c1d23d7 100755 (executable)
@@ -45,7 +45,7 @@ my $lookup; $lookup = sub {
 
     return $trydir if -r $tryfile;
 
-    return $lookup->( File::Spec->catdir($dir, File::Spec->updir) );
+    return $lookup->( File::Spec->catdir($trydir, File::Spec->updir) );
 };
 
 my $basedir = $lookup->();