-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-7130) Fix problem with File#expand_path with tilde and ENV['HOME']
Setting `ENV['HOME'] = nil` was used to provoke an exception when using a tilde character in `expand_path`. In 2.4.0, the expansion works OK even after assigning nil. NOTE! The exception can be provoked in an acceptance test if HOME set to empty before the Ruby process is started: ``` $ export HOME= $ irb 2.4.0 :001 > File.expand_path('~/tmp') ArgumentError: non-absolute home ```
- Loading branch information
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters