ksh-20120801-10 list size bug

Solution Verified - Updated -

Issue

When updating from ksh-20100621-19.el6_4.4 we find that ksh hangs trying to parse long lists like the following (assuming you have a lot of RPMs installed):

#!/bin/ksh
for x in `rpm -qa 2>/dev/null`
do
   echo $x
done

Using a variable does not work around the issue either:

#!/bin/ksh
RPM_LIST=”`rpm -qa 2>/dev/null`”
for x in $RPM_LIST
do
  echo $x
done

Environment

  • Red Hat Enterprise Linux 6.4
  • ksh-20120801-10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content