Red Hat Bugzilla – Bug 42720
ksh read command does not read from pipe
Last modified: 2008-05-01 11:38:00 EDT
Description of Problem: The ksh read command does not read from a pipe.
How Reproducible: All the time.
Steps to Reproduce:
1. Using ksh
2. echo A B C | read AA BB CC
3. echo $AA
Actual Results: You get nothing.
Expected Results: You should get A
Additional Information: The results are the same if you use command line
or put results in a script.
I don't recall exact version of distribution. I believe it is 7.0??.
uname -a gives:
Linux harley 2.2.16-22 #2 Sat Apr 21 14:10:28 CDT 2001 i586 unknown
The 'component' field would not let me specify ksh or Korn Shell (why?),
but would not let me submit the bug without something; so I picked
This isn't against 4Suite...
*** This bug has been marked as a duplicate of 8894 ***