From: Mike Stok Date: 2006-10-13T23:50:42+09:00 Subject: Re: Why does 'chroot' interfere with 'system'? On 13-Oct-06, at 10:40 AM, Martin Coxall wrote: >> Could this be it? You could check by verifying the return >> value of the various calls to Kernel.system, no? > > The odd thing is, that seems like the obvious answer. However, if you > take only the first two lines: > > Dir.chroot(Dir.pwd) > Kernel.system('echo "new file" > foo') > > I'd expect that to work, because 'echo' is a builtin on most shells. > But it doesn't, not on a random debian box I just tried. I don't > understand that. > > Martin > > Where do you get the shell from? -- Mike Stok http://www.stok.ca/~mike/ The "`Stok' disclaimers" apply.