[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash 5.0.11 – Output not redirected
From: |
Greg Wooledge |
Subject: |
Re: bash 5.0.11 – Output not redirected |
Date: |
Wed, 26 Feb 2020 10:48:17 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Feb 26, 2020 at 05:39:22PM +0200, Ricky Tigg wrote:
> Tested on *Gnome*; Component: bash.x86_64 5.0.11
>
> Used Shell;
> $ echo $SHELL
> /bin/bash
>
> Following command opens the queried graphical terminal emulator;
> $ echo q | gnome-terminal
>
> Result in opened terminal:
> [yk@localhost ~]$
>
> Redirected output is thus not present as input there.
There's no bug here. No terminal emulator reads stdin before creating
the new pseudoterminal.
wooledg:~$ echo hi | xterm
wooledg:~$ echo hi | urxvt
None of these gives me anything but a regular terminal of the indicated
type.
Even if you were to consider this a feature request, it would be a
feature request for your terminal emulator, not for bash.
If you're trying to pre-populate the input buffer of a shell in a newly
launched terminal emulator, you're about to go down some very deep
rabbit holes. I suggest you look at tmux or screen. Those may have
some of the features you're looking for, if my guess is on target.