Re: the GPG_TTY line in bashrc produces error message in chroot environment

"Jamenson Espindula" ([email protected] via blfs-dev Mailing List) <[email protected]> Sun, 19 Oct 2025 23:24:11 -0300
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <CAOW_YOnJZndGXiHEp45ODO2LKKvxa0OQ9dGFgEK7t6oH-6WE1w@mail.gmail.com>
Em sáb., 18 de out. de 2025 às 01:17, Zhang Wen
<[email protected]> escreveu:
>
> The root cause is while the tty command returns non-zero in the chroot
> environment, the 'tty -s' command returns a zero value.
> I changed 'tty -s' to 'tty > /dev/null 2>&1' and the error message
> disappeared, not sure if there's a better solution.
>
I did reproduce that.

I add that the GPG_TTY exported variable was set with 'not a tty' (see
output of printenv | grep 'GPG_TTY').

A question arises in my mind: inside the chroot environment, if it is
'not a tty', then what is it?

Jamenson Ferreira Espindula de Almeida Melo
Jaboatão dos Guararapes, Pernambuco, Brazil
GNU/Linux user #166197; LFS ID 24492
Key fingerprint: 234D 1914 4224 7C53 BD13 6855 2AE0 25C0 08A8 6180

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page