Gregory Brown
7/5/2007 8:22:00 PM
On 7/5/07, Giles Bowkett <gilesb@gmail.com> wrote:
> All I remember off the top of my head is that backticks is the most
> terse and system() is the one I use the most. I had forgotten exec()
> even existed. "The Ruby Way" says that exec() doesn't use a subshell
> and system() does. I think that's *why* I forgot exec() existed - I
> think I blacklisted the method from the moment I discovered it.
I wonder if exec() might be useful in forking. Just playing around:
fork do
exec 'ls'
end
puts "I can has ls?"
Process.wait