Jano Svitok
10/13/2006 2:48:00 PM
On 10/13/06, Martin Coxall <pseudo.meta@gmail.com> 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.
As the previous posters said: do you have your shell in the chrooted dir?