Red Hat Bugzilla – Bug 50142
output and input redirect fails
Last modified: 2007-04-18 12:35:13 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
Description of problem:
When I redirect input and ouput in a bash shell to communicate with a
modem on ttySx the output goes to stdout.
It did work in RH5.1 but since upgrading to RH 7.0 it no longer works.
When using bash from the RH 5.1 distribution in an RH 7.0 environment the
problem does not occur.
Steps to Reproduce:
1. Create a bash script such as;
chat -t 30 '' ATZ OK '' <> /dev/ttyS0
2. Execute the scrpit
3. The output will be something like;
4. Notice that the output from the chat command came to stdout instead of
This is true, but it's not a bug.
The new behavior is the one required by the POSIX standard (which bash >= 2.0 is following).