[#35027] [Ruby 1.9-Bug#4352][Open] [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s) — "James M. Lawrence" <redmine@...>

Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)

16 messages 2011/02/01

[#35114] [Ruby 1.9-Bug#4373][Open] http.rb:677: [BUG] Segmentation fault — Christian Fazzini <redmine@...>

Bug #4373: http.rb:677: [BUG] Segmentation fault

59 messages 2011/02/06

[#35171] [Ruby 1.9-Bug#4386][Open] encoding: directive does not affect regex expressions — mathew murphy <redmine@...>

Bug #4386: encoding: directive does not affect regex expressions

9 messages 2011/02/09

[#35237] [Ruby 1.9-Bug#4400][Open] nested at_exit hooks run in strange order — Suraj Kurapati <redmine@...>

Bug #4400: nested at_exit hooks run in strange order

12 messages 2011/02/15

[ruby-core:35036] [Ruby 1.9-Bug#4354][Open] File.realdirpath is expected to test for real file.

From: Luis Lavena <redmine@...>
Date: 2011-02-02 02:04:08 UTC
List: ruby-core #35036
Bug #4354: File.realdirpath is expected to test for real file.
http://redmine.ruby-lang.org/issues/show/4354

Author: Luis Lavena
Status: Open, Priority: Normal
Target version: 1.9.x
ruby -v: 1.9.2-p136 and ruby 1.9.3dev (2011-02-02 trunk 30758) [i386-mingw32]

Hello,

Comparing File.realpath behavior with File.realdirpath behavior, they don't match:

<pre>

$ mkdir -p ~/foo/bar
$ cd /home/user/foo/
$ touch a.rb

$ ruby -ve "puts File.realpath('a.rb')"
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
/home/user/foo/a.rb

$ ruby -ve "puts File.realpath('b.rb')"
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
-e:1:in `realpath': No such file or directory - /home/user/foo/b.rb (Errno::ENOENT)
        from -e:1:in `<main>'

$ ruby -ve "puts File.realdirpath('bar')"
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
/home/user/foo/bar

$ ruby -ve "puts File.realdirpath('baz')"
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
/home/user/foo/baz

$ ls -l
total 4
-rw-r--r-- 1 user user    0 2011-02-01 23:00 a.rb
drwxr-xr-x 2 user user 4096 2011-02-01 23:00 bar

</pre>

If 'real' is attempting to check for real files, also realdir should be behaving similar, correct?


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next