<?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: : comment? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608807#M854022</link>
    <description>Here's my 2 cents:&lt;BR /&gt;&lt;BR /&gt;: is not a comment.  It is essentially a null command.  It does not process command line args yet the shell still interprets them.  It is sometimes used like a comment because it doesn't do anything and the comments are ignored arguments.  The shell is doing the work.&lt;BR /&gt;&lt;BR /&gt;You can create your own null command by creating an empty file.  It will work just like Wodisch's example.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Wed, 07 Nov 2001 18:43:23 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2001-11-07T18:43:23Z</dc:date>
    <item>
      <title>: comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608795#M854010</link>
      <description>After years of using comments like this:&lt;BR /&gt;# this is a comment&lt;BR /&gt;today I came across a script with &lt;BR /&gt;: this is a comment.&lt;BR /&gt;&lt;BR /&gt;Is there any compelling reason, other than to flummox the reader, for one to use a colon instead of the good old hash?</description>
      <pubDate>Wed, 07 Nov 2001 06:15:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608795#M854010</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608796#M854011</link>
      <description>oops..that should have gone under 'languages'.</description>
      <pubDate>Wed, 07 Nov 2001 06:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608796#M854011</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T06:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608797#M854012</link>
      <description>Hi,&lt;BR /&gt;:this is a comment&lt;BR /&gt;sh: :this:  not found.&lt;BR /&gt;:(&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 06:34:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608797#M854012</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-11-07T06:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608798#M854013</link>
      <description>Dunno, but I've got another question: &lt;BR /&gt;&lt;BR /&gt;   if  grep -qx $fs $EXCLUDE&lt;BR /&gt;                then&lt;BR /&gt;                    :   # To cater for ksh as ! command doesn't work&lt;BR /&gt;                else&lt;BR /&gt;                    print - $block&lt;BR /&gt;                fi&lt;BR /&gt;&lt;BR /&gt;ksh wouldn't like the use of the : as it has special meaning.</description>
      <pubDate>Wed, 07 Nov 2001 06:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608798#M854013</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-07T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608799#M854014</link>
      <description>Animesh,&lt;BR /&gt;Try with a space after the ':'&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 06:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608799#M854014</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608800#M854015</link>
      <description>Hi Deepak,&lt;BR /&gt;&lt;BR /&gt;From animesh feedback it seems : does not act as a comment line signifier. It seems we have to live with the good old "#" only. Are you sure ":" is there to signify a comment line.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 06:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608800#M854015</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-11-07T06:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608801#M854016</link>
      <description>Hi Deepak,&lt;BR /&gt;$: this is a comment&lt;BR /&gt;$ It works now with space&lt;BR /&gt;:)&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 07:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608801#M854016</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-11-07T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608802#M854017</link>
      <description>It seems that Deepak has a problem with spaces today..... Maybe I should have bought you that beer, you certainly now deserve it.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;-Michael</description>
      <pubDate>Wed, 07 Nov 2001 07:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608802#M854017</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-07T07:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608803#M854018</link>
      <description>Hi, deepak&lt;BR /&gt;&lt;BR /&gt;OLD IS GOLD. better stick to that.</description>
      <pubDate>Wed, 07 Nov 2001 08:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608803#M854018</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-11-07T08:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608804#M854019</link>
      <description>Hi Deepak,&lt;BR /&gt;&lt;BR /&gt;The : or null command, is commonly used in if-else-fi blocks, where you cannot get away with executing nothing, e.g.&lt;BR /&gt;&lt;BR /&gt;=====================================&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;if [ -f /etc/passwd ] ; then&lt;BR /&gt;#&lt;BR /&gt;else&lt;BR /&gt; echo passwd file missing&lt;BR /&gt;fi&lt;BR /&gt;=====================================&lt;BR /&gt;&lt;BR /&gt;will fail - you need to put a : in place of the # for this to work.  You could negate the if statement, but you may want to modify the script at a later stage with the existing if syntax.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 07 Nov 2001 08:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608804#M854019</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-11-07T08:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608805#M854020</link>
      <description>Robin has a point !&lt;BR /&gt;I use a dummy command from good old assembler times, cause ":" can cause these questions.&lt;BR /&gt;&lt;BR /&gt;NOP=1&lt;BR /&gt;&lt;BR /&gt;No OPeration :-)&lt;BR /&gt;&lt;BR /&gt;Keep Assembler alive :-)&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 07 Nov 2001 08:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608805#M854020</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-11-07T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608806#M854021</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;the command ":" is NOT a null command! Actually everything following it is evaluated, substituteted, and such.&lt;BR /&gt;So after&lt;BR /&gt;: ${x:=wow}&lt;BR /&gt;the variabel "$x" conatains "wow" only if it was previously empty!&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Wed, 07 Nov 2001 12:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608806#M854021</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-11-07T12:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608807#M854022</link>
      <description>Here's my 2 cents:&lt;BR /&gt;&lt;BR /&gt;: is not a comment.  It is essentially a null command.  It does not process command line args yet the shell still interprets them.  It is sometimes used like a comment because it doesn't do anything and the comments are ignored arguments.  The shell is doing the work.&lt;BR /&gt;&lt;BR /&gt;You can create your own null command by creating an empty file.  It will work just like Wodisch's example.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 07 Nov 2001 18:43:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608807#M854022</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-07T18:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608808#M854023</link>
      <description>&lt;BR /&gt;#: ${x:=wow}&lt;BR /&gt;&lt;BR /&gt;#echo $x&lt;BR /&gt;wow&lt;BR /&gt;&lt;BR /&gt;#: echo $x&lt;BR /&gt;&lt;NOTHING&gt;&lt;BR /&gt;&lt;BR /&gt;whee..aint this fun?&lt;/NOTHING&gt;</description>
      <pubDate>Thu, 08 Nov 2001 02:45:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608808#M854023</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-08T02:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: : comment?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608809#M854024</link>
      <description>evaluated - not executed!  :-)</description>
      <pubDate>Thu, 08 Nov 2001 07:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comment/m-p/2608809#M854024</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-11-08T07:26:37Z</dc:date>
    </item>
  </channel>
</rss>

