pathname icon indicating copy to clipboard operation
pathname copied to clipboard

Implement Pathname#chdir

Open zverok opened this issue 2 years ago • 7 comments

As it was introduced into Ruby 3.3 as Dir#chdir, and was requested before that in #25.

zverok avatar Dec 16 '23 18:12 zverok

Pathname#chdir already existed in ruby till 1.9.1, was obsoleted in 1.8.1 preview and removed in 1.9.2 preview

toy avatar Dec 27 '23 13:12 toy

@toy Interesting. Do you know the justification? (The obsoleting commit doesn't link to the tracker ticket or ruby-core email discussion) :thinking:

zverok avatar Dec 27 '23 14:12 zverok

@zverok I remember being frustrated about the change and that justification was something about the method being misplaced, but I failed now to find any more information about it

toy avatar Dec 27 '23 15:12 toy

https://blade.ruby-lang.org/ruby-core/21564

hsbt avatar Dec 27 '23 22:12 hsbt

@hsbt That one is about removal of methods already marked obsolete, but not why were they marked obsolete

toy avatar Dec 27 '23 22:12 toy

@hsbt Any updates on this?.. It is a bit weird now that (more simple) Dir object has this method after Ruby 3.3, but (more advanced) Pathname doesn’t.

zverok avatar Sep 26 '24 06:09 zverok

see https://github.com/ruby/pathname/issues/25#issuecomment-2392655732

hsbt avatar Oct 04 '24 02:10 hsbt