# File.exists? broken in svn

**URL:** <https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574>\
**Category:** Ruby\
**Created:** [March 30, 2007, 12:11am UTC](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574 "2007-03-30T00:11:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [March 30, 2007, 12:11am UTC](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574/1 "2007-03-30T00:11:23Z")

</div>

The following one-liner works with release versions of ruby, but  
fails in the current version from svn:  
ruby -e ‘print File.exists?(“a.a”)’  
This isn’t intentional, is it?

I’m just trying to get a running copy of ruby with the fancier  
regexes that 1.9 has. I’m running Linux. Should I be trying the  
stable snapshot? I think it’s also possible to compile 1.8 with  
the newer regexes, but I’m not sure how to do that on Linux. (On  
FreeBSD, the port asks you specifically if you want to do that.)

TIA!

-Ben

---

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [March 30, 2007, 1:56am UTC](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574/2 "2007-03-30T01:56:31Z")

</div>

Ben C. wrote:

> I’m just trying to get a running copy of ruby with the fancier  
> regexes that 1.9 has. I’m running Linux. Should I be trying the  
> stable snapshot? I think it’s also possible to compile 1.8 with  
> the newer regexes, but I’m not sure how to do that on Linux. (On  
> FreeBSD, the port asks you specifically if you want to do that.)

[http://rubyforge.org/projects/oniguruma/](http://rubyforge.org/projects/oniguruma/)

–  
Phillip “CynicalRyan” Gawlowski  
[http://cynicalryan.110mb.com/](http://cynicalryan.110mb.com/)

Rule of Open-Source Programming #1:

Don’t whine unless you are going to implement it yourself.

---

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [March 30, 2007, 5:03am UTC](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574/3 "2007-03-30T05:03:43Z")

</div>

Hi,

In message “Re: File.exists? broken in svn”  
on Fri, 30 Mar 2007 07:10:08 +0900, Ben C.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

|The following one-liner works with release versions of ruby, but  
|fails in the current version from svn:  
| ruby -e ‘print File.exists?(“a.a”)’  
|This isn’t intentional, is it?

trunk does not have obsoleted exists? method, use exist? instead.

```
          matz.

```

---

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [March 30, 2007, 6:15am UTC](https://www.ruby-forum.com/t/file-exists-broken-in-svn/90574/4 "2007-03-30T06:15:49Z")

</div>

Yukihiro M. wrote:

> trunk does not have obsoleted exists? method, use exist? instead.
> 
> ```
> matz.
> 
> ```

OK, thanks for the info.

-Ben
