[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in bash
From: |
Oğuz |
Subject: |
Re: bug in bash |
Date: |
Sun, 12 May 2024 17:00:58 +0300 |
On Sun, May 12, 2024 at 4:33 PM Andreas Schwab <schwab@linux-m68k.org> 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 /* 30 vars */
<unfinished ...>
554 +++ exited with 1 +++
But it doesn't change the process group ID of `wc' to its PID, so it
ends up in the foreground process group with bash. See:
$ cat <(bash -c 'enable setpgid; setpgid $$ $$; wc -l') <bk
bash: bk: No such file or directory
$ wc: 'standard input': Input/output error
$
- bug in bash, Quốc Trị Đỗ, 2024/05/12
- Re: bug in bash, Andreas Kähäri, 2024/05/12
- Re: bug in bash, Kerin Millar, 2024/05/12
- Re: bug in bash, Greg Wooledge, 2024/05/12
- Re: bug in bash, Andreas Schwab, 2024/05/12
- Re: bug in bash,
Oğuz <=
- Re: bug in bash, Chet Ramey, 2024/05/13
- Re: bug in bash, Oğuz, 2024/05/13
- Re: bug in bash, Chet Ramey, 2024/05/14
- Re: bug in bash, Andreas Schwab, 2024/05/14
- Re: bug in bash, Chet Ramey, 2024/05/14
- Re: bug in bash, Chet Ramey, 2024/05/14