Skip to content

Commit

Permalink
Wipe out CDPATH when building. Fixes #555
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Nov 2, 2010
1 parent d5571e5 commit c3a6df2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

3 comments on commit c3a6df2

@jlecour
Copy link

@jlecour jlecour commented on c3a6df2 Nov 2, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member

@evanphx evanphx commented on c3a6df2 Nov 2, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@jlecour
Copy link

@jlecour jlecour commented on c3a6df2 Nov 2, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, that's great.

Please sign in to comment.