Re: Environment and pipes

2015-09-14 Thread Thorsten Glaser
Jean Delvare dixit: >I will check with the customer. The example they provided was clearly >made up to illustrate the problem (and I do appreciate when customers >make the problem easy to understand) so I don't know exactly what their >actually script is doing. Okay. It’s probably better for all

Re: Environment and pipes

2015-09-14 Thread Jean Delvare
Le Friday 11 September 2015 à 20:23 +, Thorsten Glaser a écrit : > Dixi quod… > > >I think coprocesses are pretty usable for this in almost all cases > >(I did have one where they weren’t, but you can still often background > >a part, then play with fd redirection). > > Another thing that may

Re: Environment and pipes

2015-09-14 Thread Jean Delvare
Hi Thorsten, Thanks for your fast and complete answers. Le Friday 11 September 2015 à 20:07 +, Thorsten Glaser a écrit : > Jean Delvare dixit: > > >Dear mksh developers, > > Feel free to use the singular ☺ we’re all just one person, be > it mksh, bash, ksh93, lynx, ncurses, xterm… all those

Re: Environment and pipes

2015-09-11 Thread Thorsten Glaser
Dixi quod… >I think coprocesses are pretty usable for this in almost all cases >(I did have one where they weren’t, but you can still often background >a part, then play with fd redirection). Another thing that may help you, if it’s absolutely needed: Before we had ${PIPESTATUS[*]} I wrote thing

Re: Environment and pipes

2015-09-11 Thread Thorsten Glaser
Jean Delvare dixit: >Dear mksh developers, Feel free to use the singular ☺ we’re all just one person, be it mksh, bash, ksh93, lynx, ncurses, xterm… all those projects are done by one person (sometimes even the same). >A customer of ours is migrating from ksh-93 to mksh. They reported the Inter

Environment and pipes

2015-09-11 Thread Jean Delvare
Dear mksh developers, A customer of ours is migrating from ksh-93 to mksh. They reported the following difference in behavior: ksh-93: $ echo X | read A $ echo $A X mksh: $ echo X | read A $ echo $A So mksh behaves the same as for example bash, in that changes to the environment of the right s

Re: Environment and pipes

2015-09-11 Thread Dr. Werner Fink
On Fri, Sep 11, 2015 at 03:10:13PM +0200, Jean Delvare wrote: > Dear mksh developers, > > A customer of ours is migrating from ksh-93 to mksh. They reported the > following difference in behavior: > > ksh-93: > $ echo X | read A > $ echo $A > X > > mksh: > $ echo X | read A > $ echo $A > > So m