Bug#606821: mksh: bash-style process substitution

2012-12-05 Thread Jonathan Nieder
Thorsten Glaser wrote: > Hi, > > do these have to be pipes? That got me wondering. Yes, for most use cases I have run into they do need to be pipes and not tempfiles. I do think =(...) is neat, too, but it is a distinct feature. Thanks, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-r

Bug#606821: mksh: bash-style process substitution

2012-12-05 Thread Thorsten Glaser
Hi, do these have to be pipes? That got me wondering. Otherwise, I could do a tree-level transform (except the IOREDIR cases are again slightly more complex). Something like this: • if <(command2) is contained in command1: ‣ allocate a tempfile ⇒ attach the tempfile to the list of cleanups

Bug#606821: mksh: bash-style process substitution

2010-12-13 Thread Jonathan Nieder
Thorsten Glaser wrote: > Jonathan Nieder dixit[1]: >> <( ... )- runs ... in a subshell in the background, with its >>output connected to a pipe. [...] >> On Linux and similar OSes this is typically implemented using >> /proc/fd. A more portable implementation would us

Bug#606821: mksh: bash-style process substitution

2010-12-11 Thread Thorsten Glaser
Jonathan Nieder dixit: >This construct is also handy when one wants to update the current >environment downstream from some other process. process |& while IFS= read -pr line; do … done ↑ is the proper ksh idiom for that. > <( ... )- runs ... in

Bug#606821: mksh: bash-style process substitution

2010-12-11 Thread Jonathan Nieder
Package: mksh Version: 39.3.20101101-1 Severity: wishlist Tags: upstream Hi Thorsten, Recently I found myself debugging a pipeline with "tee". Unfortunately the logs grew large very quickly, so as a stopgap measure I used a compressor. mkfifo backflow ... (xz -1 >log-one.xz) |