From: "cha1tanya (Prathamesh Sonpatki)" Date: 2013-10-11T12:23:12+09:00 Subject: [ruby-core:57820] [ruby-trunk - Bug #9002] Use simpler example for File#expand_path Issue #9002 has been updated by cha1tanya (Prathamesh Sonpatki). Can we give both examples? I think the original example is a bit hard to understand due to two "..". In the first example we can show normal use and in second example, as you pointed out, how to resolve "..". Eregon (Benoit Daloze) wrote: > I don't know, the original example shows File.expand_path does resolve ".." and such. > Your example could be interpreted as File.expand_path being just File.join with reversed arguments. > On the other hand, ".." could be used just once in the example and probably still be clear (going to "/" does not make a lot of sense, one could just use "/bin" directly). ---------------------------------------- Bug #9002: Use simpler example for File#expand_path https://bugs.ruby-lang.org/issues/9002#change-42422 Author: cha1tanya (Prathamesh Sonpatki) Status: Open Priority: Normal Assignee: zzak (Zachary Scott) Category: doc Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-07-20 trunk 42078) [x86_64-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN Use simpler example for File#exapnd_path when start_directory path is given. -- http://bugs.ruby-lang.org/