% ln -s unexist hoge
% ruby -v -rfileutils -e ‘FileUtils.mv(“hoge”, “fuga”)’
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in stat': No such file or directory - hoge (Errno::ENOENT) from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in block
in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in mv' from -e:1:in ’
% ln -s unexist hoge
% ruby -v -rfileutils -e ‘FileUtils.mv(“hoge”, “fuga”)’
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in stat': No such file or directory - hoge (Errno::ENOENT) from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in block
in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in mv' from -e:1:in ’
% ln -s unexist hoge
% ruby -v -rfileutils -e ‘FileUtils.mv(“hoge”, “fuga”)’
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in stat': No such file or directory - hoge (Errno::ENOENT) from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in block
in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in mv' from -e:1:in ’
% ln -s unexist hoge
% ruby -v -rfileutils -e ‘FileUtils.mv(“hoge”, “fuga”)’
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in stat': No such file or directory - hoge (Errno::ENOENT) from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in block
in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in mv' from -e:1:in ’
% ln -s unexist hoge
% ruby -v -rfileutils -e 'FileUtils.mv("hoge", "fuga")'
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `stat': No such
file or directory - hoge (Errno::ENOENT)
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `block in
fu_each_src_dest'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in
`fu_each_src_dest0'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in
`fu_each_src_dest'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in `mv'
from -e:1:in `<main>'
% ln -s unexist hoge
% ruby -v -rfileutils -e 'FileUtils.mv("hoge", "fuga")'
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `stat': No such
file or directory - hoge (Errno::ENOENT)
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `block in
fu_each_src_dest'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in
`fu_each_src_dest0'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in
`fu_each_src_dest'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in `mv'
from -e:1:in `<main>'
% ln -s unexist hoge
% ruby -v -rfileutils -e 'FileUtils.mv("hoge", "fuga")'
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `stat': No such
file or directory - hoge (Errno::ENOENT)
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `block in
fu_each_src_dest'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in
`fu_each_src_dest0'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in
`fu_each_src_dest'
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in `mv'
from -e:1:in `<main>'
% ln -s unexist hoge
% ruby -v -rfileutils -e ‘FileUtils.mv(“hoge”, “fuga”)’
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in stat': No such file or directory - hoge (Errno::ENOENT) from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in block
in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in fu_each_src_dest’
from /home/tommy/ruby193/lib/ruby/1.9.1/fileutils.rb:508:in mv' from -e:1:in ’
mv コマンドと同じ動きを目指すのであればエラーにすべきではないと思います。
r27317 から発生していると思います。
=end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.