Bug 450172
Summary: | Gawk 3.1.3 while bug | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Christopher <christopher.geen> |
Component: | gawk | Assignee: | Jan Zeleny <jzeleny> |
Status: | CLOSED NOTABUG | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 4.6 | CC: | rchidamb |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-05 16:47:57 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: |
Description
Christopher
2008-06-05 17:25:01 UTC
Use parentheses around the string concatenation to get this working. Not using parentheses makes the expression ambiguous. Reference: htte://www.gnu.org/manual/gawk/html_node/Getline_002fPipe.html#Getline_002fPipe Here is the right way to do it with the original script - #!/usr/bin/gawk -f # test.gawk BEGIN { comm="-al"; while(("/bin/ls "comm) | getline >0){ print } } Notice the parentheses in the expression in the "while" condition. - Didar Since this has been already solved in previous comments, I'm closing this as NOTABUG. |