Bug 3200
| Summary: | shell read command does not behave as expected | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | ron.kyles |
| Component: | pdksh | Assignee: | David Lawrence <dkl> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-05-29 18:00:46 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This is still a problem in pdksh-5.2.14-1. The fix won't be in Red Hat 6.1. I'm preserving the bug by changing the state to REMIND. |
The following script returns nulls in the read command arguments; however if you comment out the read command, awk will print the field variables: #!/bin/ksh IFS=' ' echo "1;/usr/tistar/bin/flpnm.asc;Name;Ascending;lp_" | \ awk -F\; '{if(NR == tc) {printf("%s %s %s %s\n", $2, $3, $4, $5)}}' tc=1 | \ read file field sortorder value echo $file $field $sortorder $value