From: michael greenly Date: 2008-08-18T21:56:44+09:00 Subject: [ruby-core:18323] Re: NEW Command: absolute_path() -- ------=_Part_141177_23884850.1219064349814 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Are you sure you didn't mean to use "~/oracle/bin" On Sun, Aug 17, 2008 at 11:03 PM, Trans wrote: > > > On Aug 17, 10:03 pm, Yukihiro Matsumoto wrote: > > Hi, > > > > In message "Re: [ruby-core:18319] NEW Command: absolute_path() --" > > on Sun, 17 Aug 2008 06:01:52 +0900, "C.E. Thornton" < > ad...@hawthorne-press.com> writes: > > > > |I have created patches for both 1.8.7 and 1.9.0 trunk > > |to implement the command 'absolute_path()'. > > > > |If there is anything else required for inclusion approval, > > |please let me know. > > > > I am still thinking to decide if this is a creeping feature, or useful > > addition (since it's VERY similar to a existing method). I just want > > to tell you you're not ignored at all. > > Why does the ~ prevent the expansion in File.expand_path? > > File.expand_path('~oracle/bin') #=> '~oracle/bin' > > Never noticed this before. > > 7rans. > > -- Michael Greenly http://blog.michaelgreenly.com ------=_Part_141177_23884850.1219064349814 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Are you sure you didn't mean to use "~/oracle/bin"

On Sun, Aug 17, 2008 at 11:03 PM, Trans <transfire@gmail.com> wrote:


On Aug 17, 10:03 pm, Yukihiro Matsumoto <m...@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: [ruby-core:18319] NEW Command:  absolute_path() --"
>     on Sun, 17 Aug 2008 06:01:52 +0900, "C.E. Thornton" <ad...@hawthorne-press.com> writes:
>
> |I have created patches for both 1.8.7 and 1.9.0 trunk
> |to implement the command 'absolute_path()'.
>
> |If there is anything else required for inclusion approval,
> |please let me know.
>
> I am still thinking to decide if this is a creeping feature, or useful
> addition (since it's VERY similar to a existing method).  I just want
> to tell you you're not ignored at all.

Why does the ~ prevent the expansion in File.expand_path?

 File.expand_path('~oracle/bin')  #=> '~oracle/bin'

Never noticed this before.

                                                            7rans.




--
Michael Greenly
http://blog.michaelgreenly.com
------=_Part_141177_23884850.1219064349814--