From: Pete Elmore Date: 2005-06-24T04:25:42+09:00 Subject: Re: Shell type Joel VanderWerf wrote: > Panich, Alexander wrote: >> Under Linux, by default, method Kernel.system(command) (backticks as >> well) executes command in the subshell of SH type. > irb(main):022:0* puts `pstree -a #{$$}` > irb ... > ├─pstree -a 8921 > └─ruby -e puts\040%{foo};\040sleep\04010 > => nil > > This is linux, too. I don't see any sh invocation. It's not hidden by > pstree is it? I think the reason you don't see the shell is that it is exec()d, otherwise this wouldn't work: irb(main):082:0> `env | grep ^USER | sed s/$USER/me/` => "USER=me\n"