Cygwin |chroot()| "bad" - but what should replace it ? / was: Re: process substitution to create a virtual file doesn't work in chroot environment

2023-10-21 Thread Roland Mainz via Cygwin
On Mon, Aug 28, 2023 at 10:50 AM Corinna Vinschen via Cygwin wrote: > On Aug 27 18:13, Cary Lewis via Cygwin wrote: [snip > The chroot implementation is old, bad, and deprecated. I was going > to rip it out entirely for I don't know how often already, but there > was always somebody asking to kee

Re: process substitution to create a virtual file doesn't work in chroot environment

2023-08-28 Thread Corinna Vinschen via Cygwin
On Aug 27 18:13, Cary Lewis via Cygwin wrote: > In a cygwin process that is started either from mintty or bash directly the > following: > > $ user=234 > > $ ./cat <(echo $user) > 234 > works as expected. > > But after a chroot: >From https://cygwin.com/cygwin-ug-net/highlights.html: chroot

Re: process substitution to create a virtual file doesn't work in chroot environment

2023-08-27 Thread Cedric Blancher via Cygwin
On Mon, 28 Aug 2023 at 00:14, Cary Lewis via Cygwin wrote: > > In a cygwin process that is started either from mintty or bash directly the > following: > > $ user=234 > > $ ./cat <(echo $user) > 234 > works as expected. > > But after a chroot: > > $ chroot . ./bash > user=234 > $ ./cat <(echo $us

process substitution to create a virtual file doesn't work in chroot environment

2023-08-27 Thread Cary Lewis via Cygwin
In a cygwin process that is started either from mintty or bash directly the following: $ user=234 $ ./cat <(echo $user) 234 works as expected. But after a chroot: $ chroot . ./bash user=234 $ ./cat <(echo $user) ./cat: /dev/fd/63: No such file or directory In the directory I am chrooting in,