United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6232039 JDK extraction on Sol/Linux continues by entering any word beginning with y when prompted for yes/no
6232039 : JDK extraction on Sol/Linux continues by entering any word beginning with y when prompted for yes/no

Details
Type:
Bug
Submit Date:
2005-02-23
Status:
Closed
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2005-04-25
Component:
install
OS:
solaris
Sub-Component:
install
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u2,6
Fixed Versions:
5.0u4

Related Reports
Backport:

Sub Tasks

Description
JDK Info:
---------
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b07)
Java HotSpot(TM) Client VM (build 1.5.0_02-b07, mixed mode, sharing)


Platform:
---------
solaris and Linux


Steps to Reproduce
------------------
1) Extract JDK bundle on solaris or Linux
Solaris:
$ ./jdk-1_5_0_02-fcs-bin-b07-solaris-sparc-18_feb_2005.sh

Linux:
# ./jdk-1_5_0_02-fcs-bin-b07-linux-i586-18_feb_2005.bin

2) When asked:
Do you agree to the above license terms? [yes or no]

Enter any word beginning with y [ e.g. yabcde ]
The extraction continues!


Expected Behavior:
------------------
Since the installation prompts 
"Do you agree to the above license terms? [yes or no]", 
entering only "yes" or "YES"/"Y"/"y" (if a desired behavior) should continue the installation.

Actual Behavior:
----------------
The extraction continues by entering any word beginning with y [ e.g. yabcde ] when prompted for [ yes/no ]

###@###.### 2005-2-23 07:31:14 GMT

Is this a bug? I believe that initial letter input from a small list is the standard command line UI usage that most users will be familiar with. As a user I would find it unexpected and annoying to have to type 'Yes', when 'y' has exactly the same identity and meaning in that context. 

Also note that the sugested fix given would allow the user to type 'y' OR 'Y' anyway. Is this not a needless complication?



###@###.### 2005-03-01 16:55:26 GMT

                                    

Comments
EVALUATION

See suggested fix for fix
###@###.### 2005-2-28 18:37:09 GMT

Also, this is applicable to Linux as well. Some of the shell syntax is
very sensitive on linux... posix vs non-posix, etc. So, we would have to
test this on Linux as well. You might want to have Jeff code review
this with Mike R. and specifically mention this.
###@###.### 2005-03-02 18:28:40 GMT
                                     
2005-02-28
SUGGESTED FIX

The following should be changed in install/make/common/sfx2sh

 <           y* | Y*)
 <               agreed=1
 <               ;;
 <           n* | N*)
          
>	    yes | Yes | YES | y | Y)
>                agreed=1
>                ;;
>            no | No | NO | n | N)

###@###.### 2005-2-28 18:37:09 GMT

The fix that actully went in can be found in this webrev:
 http://j2se.east/www/webrevs/jl156642/6232039
###@###.### 2005-03-23 20:07:08 GMT
                                     
2005-02-28



Hardware and Software, Engineered to Work Together