Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-04 Thread bug-bash
Hi Lawrence: On Fri 7/3/20 14:03 -0400 =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= wrote: >What's wrong with `foo | tee /dev/stderr | bar`? Perfect! This morning I had thought of foo | tee >(cat >&2) | bar but your soln is simplier. I assume /dev/stderr is on non linux UNIX also. -- thanks-you!,

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-06 Thread Greg Wooledge
On Sat, Jul 04, 2020 at 01:42:00PM -0500, bug-b...@trodman.com wrote: > On Fri 7/3/20 14:03 -0400 =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= wrote: > >What's wrong with `foo | tee /dev/stderr | bar`? > > but your soln is simplier. I assume /dev/stderr is on non linux UNIX > also. It is *not*. It is no

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-06 Thread Ilkka Virta
On 6.7. 14:37, Greg Wooledge wrote: On Sat, Jul 04, 2020 at 01:42:00PM -0500, bug-b...@trodman.com wrote: but your soln is simplier. I assume /dev/stderr is on non linux UNIX also. It is *not*. It is not portable at all. It works on macOS and I see mentions of it in man pages of the variou

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-06 Thread Greg Wooledge
On Mon, Jul 06, 2020 at 03:03:15PM +0300, Ilkka Virta wrote: > On 6.7. 14:37, Greg Wooledge wrote: > > On Sat, Jul 04, 2020 at 01:42:00PM -0500, bug-b...@trodman.com wrote: > > > but your soln is simplier. I assume /dev/stderr is on non linux UNIX > > > also. > > > > It is *not*. It is not porta

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-06 Thread Dale R. Worley
bug-b...@trodman.com writes: > foo | tee >(cat >&2) | bar I do wonder how portable >( ... ) is in practice, versus the portability of /dev/stderr. Maybe I worry about the former because I'm not practiced in named-FIFO programming and so think of it as non-universal. Dale

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-07 Thread Greg Wooledge
On Mon, Jul 06, 2020 at 09:45:59PM -0400, Dale R. Worley wrote: > bug-b...@trodman.com writes: > > foo | tee >(cat >&2) | bar > > I do wonder how portable >( ... ) is in practice, versus the portability > of /dev/stderr. Maybe I worry about the former because I'm not > practiced in named-FIFO

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-07 Thread Greg Wooledge
On Tue, Jul 07, 2020 at 07:41:51AM -0400, Greg Wooledge wrote: > On Mon, Jul 06, 2020 at 09:45:59PM -0400, Dale R. Worley wrote: > > bug-b...@trodman.com writes: > > > foo | tee >(cat >&2) | bar > > > > I do wonder how portable >( ... ) is in practice, versus the portability > > of /dev/stderr

Re: foo | tee /dev/stderr | bar # << thanks!

2020-07-07 Thread Chet Ramey
On 7/6/20 9:45 PM, Dale R. Worley wrote: > bug-b...@trodman.com writes: >> foo | tee >(cat >&2) | bar > > I do wonder how portable >( ... ) is in practice, versus the portability > of /dev/stderr. It's portable in the sense that it's available wherever bash is. -- ``The lyf so short, the