Another bug that will be fixed by moving to ksh93?

        -alan-

-------- Original Message --------
Subject: CR 6562687 *HOT* Created P1 opensolaris/triage-queue ksh return 
a syntax error for Linux script with for() loop
Date: Mon, 28 May 2007 07:03:44 -0600 (MDT)

*Change Request ID*: 6562687

*Synopsis*: ksh return a syntax error for Linux script with for() loop

   Product: solaris
   Category: opensolaris
   Subcategory: triage-queue
   Type: Defect
   Subtype:
   Status: 1-Dispatched
   Substatus:
   Priority: 1-Very High
   Introduced In Release:
   Introduced In Build:
   Responsible Manager: bonnie.corwin at sun.com
   Responsible Engineer:
   Initial Evaluator: opensolaris-bugs-triage at sun.com
   Keywords: opensolaris

=== *Description* 
============================================================
Category
    shell
Sub-Category
    korn
Description

/bin/ksh returns a syntax error for a shell script which contains a 
for() loop like for((count=0;count<10;count++)).
Frequency
    Always
Regression
    No
Steps to Reproduce
    run this script:
#!/bin/ksh
for((count=0;count<10;count++)) ; do true ; done
Expected Result
    script works like in Linux
Actual Result
    syntax error
Error Message(s)
    syntax error
Test Case
    #!/bin/ksh
for((count=0;count<10;count++)) ; do true ; done
Workaround
    switch application to Linux
Submitter wants to work on bug
    No
Additional configuration information
    Solaris 10 update 2, all patches added
SPARC
E280R
2 processors
4GB ram
QFE network card

*** (#1 of 1): 2007-05-28 12:53:01 GMT+00:00 bonnie.corwin at sun.com
*** Last Edit: 2007-05-28 12:53:01 GMT+00:00 bonnie.corwin at sun.com


Reply via email to