Bug 62526

Summary: Bash doesn't work with make
Product: [Retired] Red Hat Linux Reporter: hjl
Component: bashAssignee: 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:
Description Flags
A Makefile to show the bash bug none

Description hjl 2002-04-02 03:47:57 UTC
# 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.

Comment 1 hjl 2002-04-02 03:48:38 UTC
Created attachment 51744 [details]
A Makefile to show the bash bug

Comment 2 Bernhard Rosenkraenzer 2002-04-02 10:42:05 UTC
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. 


Comment 3 hjl 2002-04-02 16:49:00 UTC
It is a regression from RedHat 7.1. The build stops working
after upgrading to RedHat 7.2.