bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command hangs when using process substitution


From: Andreas Schwab
Subject: Re: Command hangs when using process substitution
Date: Sat, 18 Nov 2023 23:30:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

On Nov 18 2023, Daniel Barrett via Bug reports for the GNU Bourne Again SHell 
wrote:

> If it's helpful, here's another interesting piece of the puzzle: the
> "xsel -i" command (which also copies stdin to the X primary selection,
> like "xclip -i" does) works fine in the original pipeline, without
> needing the redirect to /dev/null:
>
> $ echo foo | tee >(xsel -i) | tr o x
> fxx

That's because xsel is properly daemonizing itself, disconnecting from
its stdin/out/err.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]