<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ksh bug? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323214#M877280</link>
    <description>On a machine running HP-UX B.11.00 A 9000/800, these commands hang after displaying the date once:&lt;BR /&gt;&lt;BR /&gt;yes '' | head -8194 | while read x; do date; done&lt;BR /&gt;yes | head -4098 | while read x; do date; done&lt;BR /&gt;yes yes | head -2050 | while read x; do date; done&lt;BR /&gt;yes 1234567 | head -1026 | while read x; do date; done&lt;BR /&gt;&lt;BR /&gt;but these commands show the date lots of times, as you would expect:&lt;BR /&gt;&lt;BR /&gt;yes '' | head -8193 | while read x; do date; done&lt;BR /&gt;yes | head -4097 | while read x; do date; done&lt;BR /&gt;yes yes | head -2049 | while read x; do date; done&lt;BR /&gt;yes 1234567 | head -1025 | while read x; do date; done&lt;BR /&gt;&lt;BR /&gt;This looks like a bug in ksh to me - 'sh' is fine, and it's also fine on 10.20 machines.&lt;BR /&gt;&lt;BR /&gt;Is there a patch for this? It seems that if the input to the 'while' loop is more than 8k then it locks up...&lt;BR /&gt;&lt;BR /&gt;Chrisak.&lt;BR /&gt;</description>
    <pubDate>Mon, 05 Jul 2004 11:40:14 GMT</pubDate>
    <dc:creator>Chrisak</dc:creator>
    <dc:date>2004-07-05T11:40:14Z</dc:date>
    <item>
      <title>ksh bug?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323214#M877280</link>
      <description>On a machine running HP-UX B.11.00 A 9000/800, these commands hang after displaying the date once:&lt;BR /&gt;&lt;BR /&gt;yes '' | head -8194 | while read x; do date; done&lt;BR /&gt;yes | head -4098 | while read x; do date; done&lt;BR /&gt;yes yes | head -2050 | while read x; do date; done&lt;BR /&gt;yes 1234567 | head -1026 | while read x; do date; done&lt;BR /&gt;&lt;BR /&gt;but these commands show the date lots of times, as you would expect:&lt;BR /&gt;&lt;BR /&gt;yes '' | head -8193 | while read x; do date; done&lt;BR /&gt;yes | head -4097 | while read x; do date; done&lt;BR /&gt;yes yes | head -2049 | while read x; do date; done&lt;BR /&gt;yes 1234567 | head -1025 | while read x; do date; done&lt;BR /&gt;&lt;BR /&gt;This looks like a bug in ksh to me - 'sh' is fine, and it's also fine on 10.20 machines.&lt;BR /&gt;&lt;BR /&gt;Is there a patch for this? It seems that if the input to the 'while' loop is more than 8k then it locks up...&lt;BR /&gt;&lt;BR /&gt;Chrisak.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jul 2004 11:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323214#M877280</guid>
      <dc:creator>Chrisak</dc:creator>
      <dc:date>2004-07-05T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: ksh bug?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323215#M877281</link>
      <description>Do you have patch PHCO_27418? That's a fairly old patch so you may be way behind on all patches. I'd get all your patches for HWE and QPK to at least a 2004 datecode.</description>
      <pubDate>Mon, 05 Jul 2004 14:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323215#M877281</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-07-05T14:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: ksh bug?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323216#M877282</link>
      <description>Bill's post reminds me that there was a series of patches(i thought security) for all the shells.  You probably should have them all in production along witht he latest quarterly release.&lt;BR /&gt;&lt;BR /&gt;HP-UX is not a 'if it aint broke don't fix it' OS. You gotta have a plan and be looking forward.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 05 Jul 2004 14:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323216#M877282</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-05T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: ksh bug?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323217#M877283</link>
      <description>Thanks for the replies.  Our boxes are badly out of date, apparently never having been patched at all.  It seems that the problem I am encountering was addressed in PHCO_18164 (which is contained in PHCO_27418):&lt;BR /&gt;&lt;BR /&gt; 9.  ksh(1) hangs when processing -&lt;BR /&gt;                  "cat bigfile | while read ..."&lt;BR /&gt;     The right side of the pipe can be any shell&lt;BR /&gt;     commands (while, if, for, etc.)&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Chrisak.</description>
      <pubDate>Tue, 06 Jul 2004 03:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-bug/m-p/3323217#M877283</guid>
      <dc:creator>Chrisak</dc:creator>
      <dc:date>2004-07-06T03:52:13Z</dc:date>
    </item>
  </channel>
</rss>

