Jason Vas Dias <jason.vas.dias@gmail.com> writes:
> <quote>
> #!/bin/bash
> tty
> echo $'1\n2' > test.list;
> while read line; do
> tty;
> done < test.list
> </quote>
>
> Its output illustrates the problem:
>
> <quote>
> $ ./bash /tmp/t.sh
> /dev/pts/6
> not a tty
> not a tty
> </quote>
tty uses stdin, so this is the expected output. Why do you think this
has anything to do with this patch?
$ tty --help | head -n 2
Usage: tty [OPTION]...
Print the file name of the terminal connected to standard input.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."