Bug 134527 - pdksh incompatibility with ksh
Summary: pdksh incompatibility with ksh
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: pdksh
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-04 13:41 UTC by John Ellson
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-05 12:32:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Ellson 2004-10-04 13:41:42 UTC
Description of problem:
In ksh, the following is supported:
  A=(a b c)
  for x in ${A[@]};do echo $x;done
but in pdksh, the '(" results in the error:
  ksh: syntax error: `(' unexpected

Version-Release number of selected component (if applicable):
pdksh-5.2.14-30

How reproducible:
100%

Steps to Reproduce:
1.ksh
2.A=(a b c)
3.
  
Actual results:
ksh: syntax error: `(' unexpected

Expected results:
set array A with no syntax error

Additional info:

Comment 1 Karsten Hopp 2004-10-05 12:32:33 UTC
This is one of the incompatibilities between pdksh and your (AT&T's)
ksh which will be fixed by the upstream pdksh maintainers in the next
release. Until then I'd suggest using the original AT&T ksh, I can
provide you with a SRPM which just needs to be recompiled with rpm
--rebuild.

Comment 2 John Ellson 2004-10-05 13:12:42 UTC
Thanks for the offer, but no need.  I just wanted to be sure that the
bug was on record.


Note You need to log in before you can comment on or make changes to this bug.