Bug 50142 - output and input redirect fails
output and input redirect fails
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-07-27 03:31 EDT by johan
Modified: 2007-04-18 12:35 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-07-27 03:32:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description johan 2001-07-27 03:31:58 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.

How reproducible:
Always

Steps to Reproduce:
1. Create a bash script such as;
_____________________
#!/bin/bash

chat -t 30 '' ATZ OK '' <> /dev/ttyS0
_____________________

2. Execute the scrpit

3. The output will be something like;
# ./"script_name"
ATZ

^C
4. Notice that the output from the chat command came to stdout instead of 
/dev/ttyS0


Additional info:
Comment 1 Bernhard Rosenkraenzer 2002-01-17 16:17:54 EST
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).


Note You need to log in before you can comment on or make changes to this bug.