Hi,
I found a bug when i tried with syntax <(cmd). this is an example
cat <(wc -l) < bk
You can follow this command, then you have bugs. I think because you
created a fork getting inside in the parenthesis and the main process do <
bk. They work parallel. Because of that, yeah.
At least, I tried
On Sun, May 12, 2024 at 03:55:21AM +0200, Quốc Trị Đỗ wrote:
> Hi,
>
> I found a bug when i tried with syntax <(cmd). this is an example
> cat <(wc -l) < bk
>
> You can follow this command, then you have bugs. I think because you
> created a fork getting inside in the parenthesis and the main pro
On Sun, 12 May 2024 03:55:21 +0200
Quốc Trị Đỗ wrote:
> Hi,
>
> I found a bug when i tried with syntax <(cmd). this is an example
> cat <(wc -l) < bk
>
> You can follow this command, then you have bugs. I think because you
> created a fork getting inside in the parenthesis and the main process
On Sun, May 12, 2024 at 03:55:21AM +0200, Quốc Trị Đỗ wrote:
> I found a bug when i tried with syntax <(cmd). this is an example
> cat <(wc -l) < bk
What is "wc -l" supposed to read from? It counts lines of standard input,
until EOF is reached. But its standard input is a terminal. And you're
r
On Mai 12 2024, Greg Wooledge wrote:
> On Sun, May 12, 2024 at 03:55:21AM +0200, Quốc Trị Đỗ wrote:
>> I found a bug when i tried with syntax <(cmd). this is an example
>> cat <(wc -l) < bk
>
> What is "wc -l" supposed to read from? It counts lines of standard input,
> until EOF is reached. But
On Sun, May 12, 2024 at 03:33:12PM +0200, Andreas Schwab wrote:
> > On Sun, May 12, 2024 at 03:55:21AM +0200, Quốc Trị Đỗ wrote:
> >> I found a bug when i tried with syntax <(cmd). this is an example
> >> cat <(wc -l) < bk
> Since the redirection fails and the cat command is never started, bash
>
On Sun, May 12, 2024 at 4:33 PM Andreas Schwab wrote:
> Since the redirection fails and the cat command is never started, bash
> doesn't switch the terminal process group
It does on my computer:
554 ioctl(255, TIOCSPGRP, [554]) = 0
553 execve("/usr/bin/wc", ["wc", "-l"], 0x55706d7bac10
On Mai 12 2024, Greg Wooledge wrote:
> Ah... I assumed bk was an existing file.
>
> hobbit:~$ cat <(wc -l) <.bashrc
> wc: 'standard input': Input/output error
> 0
> hobbit:~$
Even then there can be a race when the foreground command finishes fast
enough that bash switches the terminal process gr