<?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: ==: A test command parameter is not valid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/a-test-command-parameter-is-not-valid/m-p/5961541#M638973</link>
    <description>&lt;P&gt;What shell (if any) is referenced at the start of the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/sh&lt;/P&gt;&lt;P&gt;#!/usr/bin/ksh&lt;/P&gt;&lt;P&gt;#!/usr/bin/csh&lt;/P&gt;&lt;P&gt;#!/usr/local/bin/bash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which on HP-UX at least would be the POSIX shell, Korn shell, C Shell or GNU bash shell (if installed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The [ xxx == yyy ] construct is bash shell syntax if I recall corerctly... if the vendor is trying to be portable, one would imagine he would use POSIX standards, which implies using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [ "`uname`" = "OS400" ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which has the advantage of working in POSIX, Korn and bash shells...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2013 17:57:33 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2013-02-12T17:57:33Z</dc:date>
    <item>
      <title>==: A test command parameter is not valid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-test-command-parameter-is-not-valid/m-p/5961431#M638972</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im getting this in a script from a vendor, they re looking into it.&lt;/P&gt;&lt;P&gt;in the meantime i was curious, what does that error means if the&lt;/P&gt;&lt;P&gt;script is checking for the OS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [ "`uname`" == "OS400" ]&lt;BR /&gt;then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it sees that its hp-ux but then gets the error mssg in the subject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 16:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-test-command-parameter-is-not-valid/m-p/5961431#M638972</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2013-02-12T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: ==: A test command parameter is not valid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-test-command-parameter-is-not-valid/m-p/5961541#M638973</link>
      <description>&lt;P&gt;What shell (if any) is referenced at the start of the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/sh&lt;/P&gt;&lt;P&gt;#!/usr/bin/ksh&lt;/P&gt;&lt;P&gt;#!/usr/bin/csh&lt;/P&gt;&lt;P&gt;#!/usr/local/bin/bash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which on HP-UX at least would be the POSIX shell, Korn shell, C Shell or GNU bash shell (if installed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The [ xxx == yyy ] construct is bash shell syntax if I recall corerctly... if the vendor is trying to be portable, one would imagine he would use POSIX standards, which implies using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [ "`uname`" = "OS400" ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which has the advantage of working in POSIX, Korn and bash shells...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 17:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-test-command-parameter-is-not-valid/m-p/5961541#M638973</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2013-02-12T17:57:33Z</dc:date>
    </item>
  </channel>
</rss>

