Anyone seen this warning?
warning: conflicting chdir during another chdir block
The following code makes it happen.
Dir.chdir('/usr') do
Dir.chdir('bin') do # This "block" chdir is fine.
puts Dir['*']
end
Dir.chdir('lib') # This "bald" chdir spits a warning.
puts Dir['*']
end
Is the warning really necessary? I came across this behaviour when
using RDoc programatically. It uses a bald chdir which "conflicts"
with a block chdir in the calling program.
If it's not necessary, can the warning be removed?
Thanks,
Gavin