Ruby in non-existing directory


#1

e$B%+%l%s%H%G%#%l%/%H%j$,B8:_$7$J$$$H$-!"e(Bruby -e ‘’
e$B$,0J2<$N$h$&$K%(%i!<$K$J$j$^$9!#e(B

% cd /tmp
% mkdir foo
% cd foo
% rmdir …/foo
% ruby -ve ‘’
ruby 1.9.2dev (2009-02-28 trunk 22669) [i686-linux]
internal:prelude:3:in require': No such file or directory - getcwd (Errno::ENOENT) from <internal:prelude>:3:inblock in ’
from internal:prelude:1:in each' from <internal:prelude>:1:in

e$B$3$l$N$-$C$+$1$O!"5/F0;~$K9T$o$l$ke(B (enc/encdb e$B$Ne(B) require
e$B$Ge(B
e$B$9$,!"e(Bgetcwd e$B$N<:GT$O%+%l%s%H%G%#%l%/%H%j$+$i$N8!:w$r9T$o$Je(B
e$B$$$@$1:Q$^$9$N$,$$$$$N$G$O$J$$$N$+$H;W$$$^$9!#e(B

e$B$J$*!"e(Bminiruby -e ‘’ e$B$J$ie(B (require e$B$,9T$o$l$J$$$N$Ge(B)
e$B%(%i!<e(B
e$B$K$J$j$^$;$s!#e(B

% /home/ruby/191p0/ruby-1.9.1-p0/miniruby -e ‘’

e$B$7$+$7!"e(Bminiruby -e ‘require “tmpdir”’ e$B$H!"B8:_$9$k%i%$%V%ie(B
e$B%j$r;XDj$7$?>l9g!"e(B1.8 e$B$G$O%(%i!<$K$J$i$J$$$N$K!"e(B1.9
e$B$G$O%(%i!<e(B
e$B$K$J$j$^$9!#e(B

% /home/ruby/187p72/ruby-1.8.7-p72/miniruby -e ‘require “tmpdir”’
% /home/ruby/191p0/ruby-1.9.1-p0/miniruby -e ‘require “tmpdir”’
-e:1:in require': No such file or directory - getcwd (Errno::ENOENT) from -e:1:in