From: 101b147ch@... Date: 2014-04-09T21:49:02+00:00 Subject: [ruby-core:61928] [ruby-trunk - Bug #9716] FileTest.exist? does not convert relative path to absolute path before testing existence Issue #9716 has been updated by Mario Maia. Nobuyoshi Nakada wrote: > Methods of `FileTest` don't expand the arguments implicitly. Shouldn't they do that? I mean, I can understand `FileTest` not doing it, but `Pathname#exist?` has the same behavior, and I think this is kinda silly. Can you at least explain to me this decision? ---------------------------------------- Bug #9716: FileTest.exist? does not convert relative path to absolute path before testing existence https://bugs.ruby-lang.org/issues/9716#change-46131 * Author: Mario Maia * Status: Rejected * Priority: Normal * Assignee: * Category: core * Target version: * ruby -v: 2.1.1p76 (2014-02-24 revision 45161) [i686-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- `FileTest.exist?(Pathname.new('~/derp').expand_path) => true` `FileTest.exist?(Pathname.new('~/derp')) => false` -- https://bugs.ruby-lang.org/