<?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: Difference between $( &amp;lt;cmd&amp;gt; ) and `&amp;lt;cmd&amp;gt;` - FOLLOWUP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505107#M639835</link>
    <description>I once had a discussion with the bash maintainer about another HP Posix shell difference in the past. I was thinking of sending this his way to see what he has to say.&lt;BR /&gt; &lt;BR /&gt;Again, I can see no reason for changing the ' to " as HP does.&lt;BR /&gt; &lt;BR /&gt;bv</description>
    <pubDate>Tue, 15 Mar 2005 13:36:34 GMT</pubDate>
    <dc:creator>Bob_Vance</dc:creator>
    <dc:date>2005-03-15T13:36:34Z</dc:date>
    <item>
      <title>Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505105#M639833</link>
      <description>Just wanted to follow up on the previous thread:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=833315&amp;amp;admit=716493758+1110888850877+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=833315&amp;amp;admit=716493758+1110888850877+28353475&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;The HP Posix shell behavior is interesting.&lt;BR /&gt;'bash', which is a superset of the Posix shell, does *not* behave the same way:&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;hpux1 ## echo $(cat &amp;lt;&amp;lt;-"EOF"&lt;BR /&gt; 'NLS_CHARACTERSET'&lt;BR /&gt;EOF&lt;BR /&gt;)&lt;BR /&gt;"NLS_CHARACTERSET"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;linux1 ## echo $(cat &amp;lt;&amp;lt;-"EOF"&lt;BR /&gt; 'NLS_CHARACTERSET'&lt;BR /&gt;EOF&lt;BR /&gt;)&lt;BR /&gt;'NLS_CHARACTERSET'&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Also, 'ksh' has the same behavior as 'sh' on HPUX (hard-to-soft change), while, on Linux, 'ksh' behaves the same as 'bash'.&lt;BR /&gt; &lt;BR /&gt;I'm wondering which is "correct".&lt;BR /&gt;However, I can see no reason to change the hard quotes to soft, so I would lean toward 'bash's interpretation.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;bv</description>
      <pubDate>Tue, 15 Mar 2005 11:44:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505105#M639833</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-03-15T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505106#M639834</link>
      <description>Very interesting.&lt;BR /&gt;&lt;BR /&gt;I missed the first thread.&lt;BR /&gt;&lt;BR /&gt;I though bash was supposed to be a posix compliant shell. &lt;BR /&gt;&lt;BR /&gt;HP-UX's default shell is posix and ksh is supposed to be almost exactly the same as posix.&lt;BR /&gt;&lt;BR /&gt;I would tend to think if something was wrong, or perhaps the better word is non-compliant, it would be Linux.&lt;BR /&gt;&lt;BR /&gt;They added some enhancements to cron that were never accepted by the proprietary Unix community. Thats just an example.&lt;BR /&gt;&lt;BR /&gt;Maybe just a bug.&lt;BR /&gt;&lt;BR /&gt;I'd suggest linking these two threads into a Linux bugzilla report and see if you get a satisfactory explanation.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 15 Mar 2005 12:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505106#M639834</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-03-15T12:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505107#M639835</link>
      <description>I once had a discussion with the bash maintainer about another HP Posix shell difference in the past. I was thinking of sending this his way to see what he has to say.&lt;BR /&gt; &lt;BR /&gt;Again, I can see no reason for changing the ' to " as HP does.&lt;BR /&gt; &lt;BR /&gt;bv</description>
      <pubDate>Tue, 15 Mar 2005 13:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505107#M639835</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-03-15T13:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505108#M639836</link>
      <description>as a bit more information,&lt;BR /&gt;&lt;BR /&gt;hp, solaris, and aix all have the same behavior, while linux is different.</description>
      <pubDate>Tue, 15 Mar 2005 14:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505108#M639836</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2005-03-15T14:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505109#M639837</link>
      <description>&amp;gt;HPUX,Solaris,AIX&lt;BR /&gt; &lt;BR /&gt;Well, that *is* interesting.&lt;BR /&gt;I wonder what in the world would be the reason for that behavior?!?!?&lt;BR /&gt; &lt;BR /&gt;bv</description>
      <pubDate>Tue, 15 Mar 2005 14:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505109#M639837</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-03-15T14:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505110#M639838</link>
      <description>Reading the Posix shell spec, it's clear that HPUX Posix shell is wrong.&lt;BR /&gt;&lt;BR /&gt;I discussed this with the 'bash' maintainer.  It turns out that this is a bug in ksh88 which was fixed in ksh93.  The "posix shell" in hpux, aix, and solaris are based on ksh88.&lt;BR /&gt;&lt;BR /&gt;Indeed, in ksh on HPUX, the version is still&lt;BR /&gt; "Version 11/16/88"&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Seems strange that this bug would persist this long.&lt;BR /&gt;&lt;BR /&gt;I hope that some HPer out there might carry this "inside" ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Mon, 12 Sep 2005 19:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505110#M639838</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-09-12T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505111#M639839</link>
      <description>Bob,&lt;BR /&gt;interesting question.&lt;BR /&gt;Only for information, have a look also to this reference document about shells:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bcebhagalpur.net/tutorials/shell/shell.htm" target="_blank"&gt;http://bcebhagalpur.net/tutorials/shell/shell.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.kornshell.com/doc/faq.html" target="_blank"&gt;http://www.kornshell.com/doc/faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alex</description>
      <pubDate>Tue, 13 Sep 2005 08:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505111#M639839</guid>
      <dc:creator>Alessandro Pilati</dc:creator>
      <dc:date>2005-09-13T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505112#M639840</link>
      <description>Thanks, Alex!&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Tue, 13 Sep 2005 09:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/3505112#M639840</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-09-13T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between $( &lt;cmd&gt; ) and `&lt;cmd&gt;` - FOLLOWUP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/5411213#M639841</link>
      <description>&lt;P&gt;&amp;gt;wanted to follow up on the previous thread:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/Difference-between-lt-command-gt-and-lt-command-gt/m-p/4890778"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Difference-between-lt-command-gt-and-lt-command-gt/m-p/4890778&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I hope that some HPer out there might carry this "inside"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, it looks like nothing has changed for 11.31, even though it is Unix 2003 branded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at tusc, shows the double quotes being written to the sh###.1 temp file.&amp;nbsp; So it is bad before cat(1) reads it and echo echoes it.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 07:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lt-cmd-gt-and-lt-cmd-gt-followup/m-p/5411213#M639841</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-12-07T07:11:30Z</dc:date>
    </item>
  </channel>
</rss>

