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.