<?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 Re: Posix shell pipe exit code array in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354707#M712913</link>
    <description>Perhaps you were thinking of bash shell and echo ${PIPESTATUS[1]} .&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Aug 2004 13:00:50 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2004-08-11T13:00:50Z</dc:date>
    <item>
      <title>Posix shell pipe exit code array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354706#M712912</link>
      <description>There used to be a special array in the HP posix shell that was loaded with the exit codes of each command in an executed pipe, ie:&lt;BR /&gt;&lt;BR /&gt;echo "aaa" | sed 's/aaa/bbb/' | grep aaa&lt;BR /&gt;&lt;BR /&gt;echo ${ARRNAME[1]}   # Returns exit code of sed&lt;BR /&gt;&lt;BR /&gt;ARRNAME, of course, is what I don't remember, and it seems to have disappeared from the documentation.  Did it disappear from the posix shell also?&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Wed, 11 Aug 2004 10:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354706#M712912</guid>
      <dc:creator>Dan Martin_1</dc:creator>
      <dc:date>2004-08-11T10:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Posix shell pipe exit code array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354707#M712913</link>
      <description>Perhaps you were thinking of bash shell and echo ${PIPESTATUS[1]} .&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Aug 2004 13:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354707#M712913</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-08-11T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Posix shell pipe exit code array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354708#M712914</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;That is quite possible.  I have been known to get the old wires crossed before.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Wed, 11 Aug 2004 13:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-pipe-exit-code-array/m-p/3354708#M712914</guid>
      <dc:creator>Dan Martin_1</dc:creator>
      <dc:date>2004-08-11T13:16:09Z</dc:date>
    </item>
  </channel>
</rss>

