<?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: ksh oddity - already known? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983546#M99861</link>
    <description>Thanks Robert-Jan&lt;BR /&gt;&lt;BR /&gt;Downloaded patch and installed.&lt;BR /&gt;&lt;BR /&gt;Now at&lt;BR /&gt;$ B.11.11_LR  Nov  4 2004 06:32:21 $ &lt;BR /&gt;Version 11/16/88&lt;BR /&gt;but it still happens.&lt;BR /&gt;&lt;BR /&gt;Seem to have some problems with -o vi mode command line edits now as well.&lt;BR /&gt;&lt;BR /&gt;David&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Jun 2006 08:01:33 GMT</pubDate>
    <dc:creator>David G Ledger</dc:creator>
    <dc:date>2006-06-07T08:01:33Z</dc:date>
    <item>
      <title>ksh oddity - already known?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983544#M99859</link>
      <description>Needing to get the contents of a ksh array into an awk environment, I was tying to generate a single ksh var that could be embedded into in-line awk.&lt;BR /&gt;&lt;BR /&gt;In a spare shell, try:&lt;BR /&gt;$ set -A x a b c d&lt;BR /&gt;$ set | grep '^x\['&lt;BR /&gt;x[0]=a&lt;BR /&gt;x[1]=b&lt;BR /&gt;x[2]=c&lt;BR /&gt;x[3]=d&lt;BR /&gt;$ set | awk '/^x\[/ { print }'&lt;BR /&gt;x[0]=a&lt;BR /&gt;x[1]=b&lt;BR /&gt;x[2]=c&lt;BR /&gt;x[3]=d&lt;BR /&gt;4$ set | awk -F= '/^x\[/ { $2 = "\"" $2 "\""; print $1 "=" $2}'&lt;BR /&gt;x[0]="a"&lt;BR /&gt;x[1]="b"&lt;BR /&gt;x[2]="c"&lt;BR /&gt;x[3]="d"&lt;BR /&gt;$ y="$(set | awk -F= '/^x\[/ { $2 = "\"" $2 "\""; print $1 "=" $2}')"&lt;BR /&gt;$ echo "$y"&lt;BR /&gt;x[0]="a"&lt;BR /&gt;x[1]="b"&lt;BR /&gt;x[2]="c"&lt;BR /&gt;x[3]="d"&lt;BR /&gt;$ set | grep '^x\['&lt;BR /&gt;x[0]=a&lt;BR /&gt;x[1]=b&lt;BR /&gt;x[2]=c&lt;BR /&gt;x[3]=d&lt;BR /&gt;x[1]="b"&lt;BR /&gt;x[2]="c"&lt;BR /&gt;x[3]="d"&lt;BR /&gt;&lt;BR /&gt;Unsetting does not remove the 'extra' values. It's not '"' specific; try it with text chars.&lt;BR /&gt;&lt;BR /&gt;This may be known already, but I havn't heard of it.&lt;BR /&gt;&lt;BR /&gt;$Revision: @(#) all CUP11.11_BL2002_1129_1 PATCH_11.11 PHCO_27019&lt;BR /&gt;Fri Nov 29 08:52:39 PST 2002 $&lt;BR /&gt;$ B.11.11_LR  Feb  8 2002 01:58:34 $ &lt;BR /&gt;Version 11/16/88&lt;BR /&gt;&lt;BR /&gt;David&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2006 06:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983544#M99859</guid>
      <dc:creator>David G Ledger</dc:creator>
      <dc:date>2006-06-07T06:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: ksh oddity - already known?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983545#M99860</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;Try installing the latest ksh patch PHCO_33169&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_33169&amp;amp;sel={hpux:11.11,}&amp;amp;BC=main" target="_blank"&gt;http://www4.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_33169&amp;amp;sel={hpux:11.11,}&amp;amp;BC=main&lt;/A&gt;|search|&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 07 Jun 2006 06:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983545#M99860</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2006-06-07T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: ksh oddity - already known?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983546#M99861</link>
      <description>Thanks Robert-Jan&lt;BR /&gt;&lt;BR /&gt;Downloaded patch and installed.&lt;BR /&gt;&lt;BR /&gt;Now at&lt;BR /&gt;$ B.11.11_LR  Nov  4 2004 06:32:21 $ &lt;BR /&gt;Version 11/16/88&lt;BR /&gt;but it still happens.&lt;BR /&gt;&lt;BR /&gt;Seem to have some problems with -o vi mode command line edits now as well.&lt;BR /&gt;&lt;BR /&gt;David&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2006 08:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983546#M99861</guid>
      <dc:creator>David G Ledger</dc:creator>
      <dc:date>2006-06-07T08:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: ksh oddity - already known?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983547#M99862</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;there is nothing wrong with ksh.&lt;BR /&gt;Your grep just gets the data of the value of variable $y as well:&lt;BR /&gt;print "$y"&lt;BR /&gt;x[0]="a"&lt;BR /&gt;x[1]="b"&lt;BR /&gt;x[2]="c"&lt;BR /&gt;x[3]="d"&lt;BR /&gt;To get all array elements of x, enter&lt;BR /&gt;print "${x[*]}"&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;&lt;BR /&gt;You may even get more lines of output in setting&lt;BR /&gt;set yy='&lt;BR /&gt;x[0]="more"'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2006 10:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983547#M99862</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-07T10:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: ksh oddity - already known?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983548#M99863</link>
      <description>Smacks forehead ...&lt;BR /&gt;&lt;BR /&gt;Of course.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jun 2006 03:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983548#M99863</guid>
      <dc:creator>David Ledger at Bham</dc:creator>
      <dc:date>2006-06-08T03:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: ksh oddity - already known?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983549#M99864</link>
      <description>No problem - a case of wood and trees.</description>
      <pubDate>Thu, 08 Jun 2006 04:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh-oddity-already-known/m-p/4983549#M99864</guid>
      <dc:creator>David G Ledger</dc:creator>
      <dc:date>2006-06-08T04:06:34Z</dc:date>
    </item>
  </channel>
</rss>

