<?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: using korn shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809779#M779983</link>
    <description>&lt;BR /&gt;typeset -i A=1&lt;BR /&gt;typeset -i B=6&lt;BR /&gt;typeset -i C=4&lt;BR /&gt;&lt;BR /&gt;if [[ ( ${A} = 1 || ${B} = 3 ) &amp;amp;&amp;amp; ${C} = 4 ]]&lt;BR /&gt;  then&lt;BR /&gt;    echo "True"&lt;BR /&gt;  else&lt;BR /&gt;    echo "False"&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The syntax is different if you use the more traditional '[ ]' (single bracket) syntax because that invokes the external test command rather than ksh's internal evaluation.&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Jun 2006 09:45:00 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-06-21T09:45:00Z</dc:date>
    <item>
      <title>using korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809778#M779982</link>
      <description>using korn shell how to code the following without nested if statements.&lt;BR /&gt;&lt;BR /&gt; if ((a=1 OR b=3) AND (c=4))</description>
      <pubDate>Wed, 21 Jun 2006 09:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809778#M779982</guid>
      <dc:creator>intp</dc:creator>
      <dc:date>2006-06-21T09:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: using korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809779#M779983</link>
      <description>&lt;BR /&gt;typeset -i A=1&lt;BR /&gt;typeset -i B=6&lt;BR /&gt;typeset -i C=4&lt;BR /&gt;&lt;BR /&gt;if [[ ( ${A} = 1 || ${B} = 3 ) &amp;amp;&amp;amp; ${C} = 4 ]]&lt;BR /&gt;  then&lt;BR /&gt;    echo "True"&lt;BR /&gt;  else&lt;BR /&gt;    echo "False"&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The syntax is different if you use the more traditional '[ ]' (single bracket) syntax because that invokes the external test command rather than ksh's internal evaluation.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jun 2006 09:45:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809779#M779983</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-06-21T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: using korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809780#M779984</link>
      <description>I would do it like this. It works for any of the Bourne-like shells.&lt;BR /&gt;&lt;BR /&gt;if [ \( $a -eq 1 -o $b -eq 3 \) -a $c -eq 4 ]</description>
      <pubDate>Wed, 21 Jun 2006 09:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809780#M779984</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-06-21T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: using korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809781#M779985</link>
      <description>thanks all.</description>
      <pubDate>Wed, 21 Jun 2006 09:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-korn-shell/m-p/3809781#M779985</guid>
      <dc:creator>intp</dc:creator>
      <dc:date>2006-06-21T09:53:04Z</dc:date>
    </item>
  </channel>
</rss>

