United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6824976 : Fix NAWK assignment in shell script jdk/make/java/java/genlocales.gmk

Details
Type:
Bug
Submit Date:
2009-04-01
Status:
Resolved
Updated Date:
2011-01-05
Project Name:
JDK
Resolved Date:
2009-04-02
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
OpenJDK6
Fixed Versions:
OpenJDK6 (b16)

Related Reports

Sub Tasks

Description
Assignment to a shell variable needs to be quoted.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk6/jdk6/jdk/rev/4cfe3447dedc
                                     
2009-04-02
SUGGESTED FIX

diff --git a/make/java/java/genlocales.gmk b/make/java/java/genlocales.gmk
--- a/make/java/java/genlocales.gmk
+++ b/make/java/java/genlocales.gmk
@@ -80,7 +80,7 @@ RESOURCE_NAMES="FormatData CollationData
        @$(ECHO) $(subst .java,'\n',$(Euro_Resources_java)) >> $@.tmp.euro;
        @$(ECHO) $(subst .properties,'\n',$(NonEuro_Resources_properties)) > $@.tmp.noneuro;
        @$(ECHO) $(subst .java,'\n',$(NonEuro_Resources_java)) >> $@.tmp.noneuro;
-       NAWK=$(NAWK) SED=$(SED) $(SH) $(LOCALEGEN_SH) $(RESOURCE_NAMES) $@.tmp.euro \
+       NAWK="$(NAWK)" SED="$(SED)" $(SH) $(LOCALEGEN_SH) $(RESOURCE_NAMES) $@.tmp.euro \
                $@.tmp.noneuro $< $@
        @$(RM) $@.tmp.euro $@.tmp.noneuro;
                                     
2009-04-01
EVALUATION

See suggested fix.
                                     
2009-04-01



Hardware and Software, Engineered to Work Together