diff options
author | Akinori MUSHA <knu@idaemons.org> | 2017-11-28 17:44:12 +0900 |
---|---|---|
committer | Akinori MUSHA <knu@idaemons.org> | 2019-01-31 23:42:03 +0900 |
commit | 545b6e5820fa933ff2918913e758c6ccc1a55dfe (patch) | |
tree | bccdb89151fb4b410c98e3aeead270ba86b301a0 /activesupport/lib/active_support/test_case.rb | |
parent | 23125378673bcc606b274027666a126573e136f8 (diff) | |
download | rails-545b6e5820fa933ff2918913e758c6ccc1a55dfe.tar.gz rails-545b6e5820fa933ff2918913e758c6ccc1a55dfe.tar.bz2 rails-545b6e5820fa933ff2918913e758c6ccc1a55dfe.zip |
Remove the Kernel#` override that turns ENOENT into nil
ActiveSupport overrides `` Kernel#` `` so that it would not raise
`Errno::ENOENT` but return `nil` instead (due to the last statement
`STDERR.puts` returning nil) if a given command were not found.
Because of this, you cannot safely say somthing like
`` `command`.chomp `` when ActiveSupport is loaded.
It turns out that this is an outdated monkey patch for Windows
platforms to emulate Unix behavior on an ancient version of Ruby, and
it should be removed by now.
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
0 files changed, 0 insertions, 0 deletions