<?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: shell question on exporting arrays in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863981#M705840</link>
    <description>see previous reply</description>
    <pubDate>Tue, 05 Oct 2004 12:06:44 GMT</pubDate>
    <dc:creator>c_51</dc:creator>
    <dc:date>2004-10-05T12:06:44Z</dc:date>
    <item>
      <title>shell question on exporting arrays</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863977#M705836</link>
      <description>here is the set up&lt;BR /&gt;&lt;BR /&gt;set -A ab 1 2 3 &lt;BR /&gt;export ab&lt;BR /&gt;typeset -x | grep ^ab&lt;BR /&gt;&lt;BR /&gt;file1:&lt;BR /&gt;print ${ab[@]}&lt;BR /&gt;&lt;BR /&gt;file2:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;print ${ab[@]}&lt;BR /&gt;&lt;BR /&gt;the question is, why is the output from &lt;BR /&gt;the two files different&lt;BR /&gt;&lt;BR /&gt;and how can I get file2's output to look like file1's</description>
      <pubDate>Tue, 05 Oct 2004 10:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863977#M705836</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2004-10-05T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: shell question on exporting arrays</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863978#M705837</link>
      <description>a little more information&lt;BR /&gt;&lt;BR /&gt;I'm using the ksh shell for all of this and&lt;BR /&gt;/usr/bin/ksh ./file1 gives the same output&lt;BR /&gt;as file2 also.</description>
      <pubDate>Tue, 05 Oct 2004 10:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863978#M705837</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2004-10-05T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: shell question on exporting arrays</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863979#M705838</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From the man page of "ksh".&lt;BR /&gt;&lt;BR /&gt;//&lt;BR /&gt;The export built-in command does not handle arrays properly.  Only the&lt;BR /&gt;      first element of an array is exported to the environment.//&lt;BR /&gt;&lt;BR /&gt;Either you have to run file2 with a . (like . ./file2) or declare your arrays within file2 or put the array in a file (say arrays.rc and call it from file2 like . /whereever/arrays.rc)&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Oct 2004 11:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863979#M705838</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-05T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: shell question on exporting arrays</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863980#M705839</link>
      <description>I figured as much.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 05 Oct 2004 12:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863980#M705839</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2004-10-05T12:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: shell question on exporting arrays</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863981#M705840</link>
      <description>see previous reply</description>
      <pubDate>Tue, 05 Oct 2004 12:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-on-exporting-arrays/m-p/4863981#M705840</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2004-10-05T12:06:44Z</dc:date>
    </item>
  </channel>
</rss>

