<?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: while -h in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472581#M704262</link>
    <description>Hi Mark&lt;BR /&gt;&lt;BR /&gt;Missed that one, I do agree with your thought process :)&lt;BR /&gt;&lt;BR /&gt;Gerhard</description>
    <pubDate>Fri, 28 Jan 2005 03:44:56 GMT</pubDate>
    <dc:creator>Gerhard Roets</dc:creator>
    <dc:date>2005-01-28T03:44:56Z</dc:date>
    <item>
      <title>while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472572#M704253</link>
      <description>Hi everybody.&lt;BR /&gt;&lt;BR /&gt;I'm just debugging a shell script (that I didn't write) and it contains a line:&lt;BR /&gt;&lt;BR /&gt;while -h $PRG&lt;BR /&gt;&lt;BR /&gt;I can't find any reference to -h in any of my books or in a manual page. 10 points to the first person who tells me what -h means in this context. Further points to anyone who can tell me which manual page I will find it in.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 27 Jan 2005 09:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472572#M704253</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-27T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472573#M704254</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;ksh has a -h (but I don't think this is what you're looking for):&lt;BR /&gt;&lt;BR /&gt;"-h        Each command becomes a tracked alias when first encountered."&lt;BR /&gt;&lt;BR /&gt;sh-posix has the same definition.  Curious!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 27 Jan 2005 09:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472573#M704254</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-01-27T09:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472574#M704255</link>
      <description>Assuming POSIX shell:&lt;BR /&gt;&lt;BR /&gt; -h file     True, if file exists and is a symbolic link.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 09:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472574#M704255</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2005-01-27T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472575#M704256</link>
      <description>Thanks Pete and Tom.&lt;BR /&gt;&lt;BR /&gt;Looking at the rest of the while loop, I think Tom's answer is the one that applies in this case. The script makes a lot more sense now.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 27 Jan 2005 09:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472575#M704256</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-27T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472576#M704257</link>
      <description>Mark,&lt;BR /&gt;the -h is actually part of a test.&lt;BR /&gt;see man test for the full spec.&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 27 Jan 2005 09:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472576#M704257</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-01-27T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472577#M704258</link>
      <description>Thanks Peter.&lt;BR /&gt;&lt;BR /&gt;Six points for telling me which manual page to look at.&lt;BR /&gt;&lt;BR /&gt;This thread can now be considered closed.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 27 Jan 2005 09:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472577#M704258</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-27T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472578#M704259</link>
      <description>Hi Mark&lt;BR /&gt;&lt;BR /&gt;You do not need to concider a thread closed anymore. Look on the page and you will see a close thread button ;)&lt;BR /&gt;&lt;BR /&gt;That will stop people like me replying after the fact :P&lt;BR /&gt;&lt;BR /&gt;Gerhard</description>
      <pubDate>Fri, 28 Jan 2005 02:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472578#M704259</guid>
      <dc:creator>Gerhard Roets</dc:creator>
      <dc:date>2005-01-28T02:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472579#M704260</link>
      <description>Hi Gerhard.&lt;BR /&gt;&lt;BR /&gt;Please see &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=793765" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=793765&lt;/A&gt; - this thread persuaded me that the "close thread" feature is a bad thing that should be avoided (and preferably removed).&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 28 Jan 2005 03:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472579#M704260</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-28T03:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472580#M704261</link>
      <description>I'm sorry but I understand nothing about this thread.&lt;BR /&gt;&lt;BR /&gt;-h is used to test when condition is enclosed in (single or double) square brackets.&lt;BR /&gt;&lt;BR /&gt;    while [ -h $PRG ]&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;    while [[ -h $PRG ]]&lt;BR /&gt;&lt;BR /&gt;For me, an expression as&lt;BR /&gt;&lt;BR /&gt;    while -h $PRG&lt;BR /&gt;&lt;BR /&gt;means '-h' is a command.&lt;BR /&gt;I've written down a script using this line and the error message is:&lt;BR /&gt;&lt;BR /&gt;-h:  not found</description>
      <pubDate>Fri, 28 Jan 2005 03:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472580#M704261</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2005-01-28T03:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472581#M704262</link>
      <description>Hi Mark&lt;BR /&gt;&lt;BR /&gt;Missed that one, I do agree with your thought process :)&lt;BR /&gt;&lt;BR /&gt;Gerhard</description>
      <pubDate>Fri, 28 Jan 2005 03:44:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472581#M704262</guid>
      <dc:creator>Gerhard Roets</dc:creator>
      <dc:date>2005-01-28T03:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: while -h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472582#M704263</link>
      <description>I agree with J Damien... while checks the result of the command you give next, in your case -h, while normally you do something like:&lt;BR /&gt;while [ -h $PRG ]&lt;BR /&gt;&lt;BR /&gt;meaning '[' is the command being run. And '[' is linked to the test command.&lt;BR /&gt;&lt;BR /&gt;So it seems you have:&lt;BR /&gt;1) a special shell, having a different while command&lt;BR /&gt;2) an alias for while (while="while test" or something like that, though I cannot get this to work)&lt;BR /&gt;3) an alias for -h (-h="test -h" (this works: alias -- -h="test -h")&lt;BR /&gt;&lt;BR /&gt;Or some variant on these...&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jan 2005 04:25:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/while-h/m-p/3472582#M704263</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2005-01-28T04:25:42Z</dc:date>
    </item>
  </channel>
</rss>

