United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6723762 Fix shell command that gets java version (uses 2>1)
JDK-6723762 : Fix shell command that gets java version (uses 2>1)

Details
Type:
Bug
Submit Date:
2008-07-08
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2008-07-15
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs14 (b01)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Minor fix in make/linux/makefiles/buildtree.make
         echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>1 > /dev/null"; \
should be
         echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \
(s/2>1/2>&1/), so we send stderr to stdout instead of creating a file named "1".  Sorry for missing that last time.

                                    

Comments
EVALUATION

Add & character.
                                     
2008-07-08
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-svc/hotspot/rev/17c572e2697c
                                     
2008-07-09
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/17c572e2697c
                                     
2008-07-09



Hardware and Software, Engineered to Work Together