<?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 bash script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-script/m-p/3072332#M141024</link>
    <description>Hi all together,&lt;BR /&gt;&lt;BR /&gt;only a short tiny thing: I am writing a short bash script but can not remember what the correct syntax is to compare the content of two shell variables in an if statement.&lt;BR /&gt;&lt;BR /&gt;Thought it is:&lt;BR /&gt;&lt;BR /&gt;if ["$T1"="$T2"]&lt;BR /&gt;then&lt;BR /&gt;anything&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;What is wrong with that, cause it is not working.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;&lt;BR /&gt;Oliver&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Sep 2003 14:05:17 GMT</pubDate>
    <dc:creator>Oliver Schmitz</dc:creator>
    <dc:date>2003-09-16T14:05:17Z</dc:date>
    <item>
      <title>bash script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-script/m-p/3072332#M141024</link>
      <description>Hi all together,&lt;BR /&gt;&lt;BR /&gt;only a short tiny thing: I am writing a short bash script but can not remember what the correct syntax is to compare the content of two shell variables in an if statement.&lt;BR /&gt;&lt;BR /&gt;Thought it is:&lt;BR /&gt;&lt;BR /&gt;if ["$T1"="$T2"]&lt;BR /&gt;then&lt;BR /&gt;anything&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;What is wrong with that, cause it is not working.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;&lt;BR /&gt;Oliver&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2003 14:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-script/m-p/3072332#M141024</guid>
      <dc:creator>Oliver Schmitz</dc:creator>
      <dc:date>2003-09-16T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: bash script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-script/m-p/3072333#M141025</link>
      <description>Missing whitespace and it's really a good/disciplined practice to enclose all variables in {}'s -- though that's not your problem here.&lt;BR /&gt;&lt;BR /&gt;should be:&lt;BR /&gt;if [ "${T1}" = "${T2}" ]&lt;BR /&gt;&lt;BR /&gt;note the spaces &lt;BR /&gt;after the "[" and before the "]" -- they are required.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2003 14:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-script/m-p/3072333#M141025</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-16T14:11:48Z</dc:date>
    </item>
  </channel>
</rss>

