Hi,

At Sun, 20 Jul 2008 05:52:07 +0900,
C.E. Thornton wrote in [ruby-core:17865]:
>   I modified file.c to incorporated previous suggestions
> and my mistaken interpretation of Bash Semantics.

This is my patch, though still I'm not sure if it should ignore
the failure of user name.


Index: file.c =================================================================== --- file.c (revision 18135) +++ file.c (working copy) @@ -2649,5 +2649,6 @@ file_expand_path(VALUE fname, VALUE dnam if (!pwPtr) { endpwent(); - rb_raise(rb_eArgError, "user %s doesn't exist", buf); + s = --b; + goto relative; } dirlen = strlen(pwPtr->pw_dir); @@ -2697,4 +2698,5 @@ file_expand_path(VALUE fname, VALUE dnam #endif else if (!is_absolute_path(s)) { + relative: if (!NIL_P(dname)) { file_expand_path(dname, Qnil, result);
-- Nobu Nakada