e$B$1$$$8$e!w$$$7$D$+$G$9e(B.
e$B$3$s$I$Oe(B, lib/shell e$B$re(B ruby
1.9(YARV)e$B$KBP1~$7$h$&$H;W$C$F$$$k$N$G$9$,e(B,
Thread.criticale$B$rB?MQ$7$F$$$k$N$Ge(B,
e$B$I$&$7$?$b$s$@$+$HG:$s$G$7$^$9e(B.
e$B$^$:e(B, lib/shell e$B$G$Oe(B, e$B%+%l%s%H%G%#%l%/%H%je(B e$B$re(B
Shelle$B%*%V%8%’%/%H$4$H$Ke(B
e$B;}$F$k$h$&$K$7$F$$$^$9e(B. e$B$G0J2<$N$h$&$Ke(B Thread.critical
e$B$rMQ$$$FB>$N%9e(B
e$B%l%C%I$,B>$N%9%l%C%I$,%+%l%s%H%G%#%l%/%H%j$rJQ99$7$J$$$h$&$K$7$F$$$^$9e(B.
Thread.critical = true
back = Dir.pwd
begin
Dir.chdir @shell.cwd
@files = Dir[pattern]
ensure
Dir.chdir back
Thread.critical = false
end
umaske$BCM$bF1MM$K$7$F$$$^$9e(B.
e$B$Ge(B,
e$B$3$l$i$re(BThread.criticale$B$r;H$o$J$$$GBP1~$9$k$K$O$I$&$9$l$P$h$$$+$Je(B
e$B$He(B… lib/shell
e$B4IM}2<$K$"$k%9%l%C%I$J$iGSB>@)8f$O$G$-$^$9$,e(B, e$B%+%l%s%He(B
e$B%G%#%l%/%H%j$rJQ99$7$?$je(Bumaske$BCM$rJQ99$7$?$j$9$k2DG=@-$N$"$k%9%l%C%I$Oe(B
e$BB>$K$b$"$k$o$1$G$9$+$ie(B…
e$B2?$+NI$$0F$J$$$G$7$g$&$+e(B?
e$B$=$l$H$b$&0l$De(B,
forke$B$7$?8e$N;R%W%m%;%9B&$N%9%l%C%I$O$I$&$9$k$h$&$K$J$je(B
e$B$^$7$?$C$1e(B?
e$B$@$$$VA0$NHG$+$ie(Bkille$B$9$k$h$&$K$J$C$?5$$b$7$F$$$k$N$G$9$,e(B?
__
---------------------------------------------------->> e$B@PDMe(B
e$B7=<ye(B <<—
---------------------------------->> e-mail: [email protected] <<—