Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Wipe out CDPATH when building. Fixes #555

  • Loading branch information...
commit c3a6df20effca9271f9a7f35020b9a6d1199b85e 1 parent d5571e5
Evan Phoenix authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Rakefile
View
6 Rakefile
@@ -6,6 +6,12 @@ if ENV["RUBYLIB"]
exit 1
end
+# Wipe out CDPATH, it interferes with building in some cases,
+# see http://github.com/evanphx/rubinius/issues#issue/555
+if ENV["CDPATH"]
+ ENV.delete("CDPATH")
+end
+
$trace ||= false
$VERBOSE = true
$verbose = Rake.application.options.trace || ARGV.delete("-v")

3 comments on commit c3a6df2

@jlecour

Does it affect the current shell, after the build ?

If yes, maybe it'd be a good thing to restore it after the build not give back the same environment to the user.

@evanphx
Owner

No, it will not effect the shell after the build. It is only seen by shells launched underneath rake.

@jlecour

cool, that's great.

Please sign in to comment.
Something went wrong with that request. Please try again.