Bug 62526
| Summary: | Bash doesn't work with make | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | hjl | ||||
| Component: | bash | Assignee: | wdovlrrw <brosenkr> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.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: | 2002-04-02 03:48:43 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: | |||||||
| Attachments: |
|
||||||
Created attachment 51744 [details]
A Makefile to show the bash bug
This is because
for i in ; do something; done
^nothing
isn't part of older standards.
Support for this construct has been added in 2.05.
It is a regression from RedHat 7.1. The build stops working after upgrading to RedHat 7.2. |
# make if [ -n "" ]; then \ for r in ; do \ echo $r; \ done; \ fi /tmp/bash: -c: line 1: syntax error near unexpected token `;' /tmp/bash: -c: line 1: `if [ -n "" ]; then for r in ; do echo $r; done; fi' make: *** [all] Error 2 Bash in RedHat 7.1 and the current public beta are ok.