<?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 How to avoid substitution with string having * characters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6950791#M495381</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function myfunction {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __TEXT=`echo "$1"`&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "__TEXT=${__TEXT}"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;__AA="*** Erreur dans le passage du nombre d'arguments"&lt;BR /&gt;myfunction ${__AA}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question: How to get this as an output from this script:&lt;/P&gt;&lt;P&gt;*** Erreur dans le passage du nombre d'arguments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of this, it returns a string containing filenames !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;Note: I understand the WHY!!! But I do not know how to do the trick! in other words how to avoid the wildcard expansion ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas ? thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Den.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 13:44:37 GMT</pubDate>
    <dc:creator>SwissKnife</dc:creator>
    <dc:date>2017-03-23T13:44:37Z</dc:date>
    <item>
      <title>How to avoid substitution with string having * characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6950791#M495381</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function myfunction {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __TEXT=`echo "$1"`&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "__TEXT=${__TEXT}"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;__AA="*** Erreur dans le passage du nombre d'arguments"&lt;BR /&gt;myfunction ${__AA}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question: How to get this as an output from this script:&lt;/P&gt;&lt;P&gt;*** Erreur dans le passage du nombre d'arguments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of this, it returns a string containing filenames !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;Note: I understand the WHY!!! But I do not know how to do the trick! in other words how to avoid the wildcard expansion ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas ? thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Den.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 13:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6950791#M495381</guid>
      <dc:creator>SwissKnife</dc:creator>
      <dc:date>2017-03-23T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid substitution with string having * characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6950818#M495382</link>
      <description>&lt;P&gt;&amp;gt; Note: I understand the WHY!!!&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Perhaps.&amp;nbsp; Perhaps not.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;nbsp; But I do not know how to do the trick! in other words how to avoid&lt;BR /&gt;&amp;gt; the wildcard expansion ???&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The usual "trick" is quotation.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; myfunction ${__AA}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myfunction "${__AA}"&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Another method might be "set -f".&amp;nbsp; As usual, many things are&lt;BR /&gt;possible.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 14:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6950818#M495382</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-03-23T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid substitution with string having * characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6951442#M495383</link>
      <description>&lt;P&gt;&amp;gt; __TEXT=`echo "$1"`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the purpose of this?&amp;nbsp; Why not: __TEXT="$1"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 01:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6951442#M495383</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2017-03-27T01:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid substitution with string having * characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6951460#M495384</link>
      <description>&lt;P&gt;&amp;gt; &amp;gt; __TEXT=`echo "$1"`&lt;BR /&gt;&amp;gt; What is the purpose of this?&amp;nbsp; Why not: __TEXT="$1"&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Or even: __TEXT=$1&lt;BR /&gt;&lt;BR /&gt;pro3$ x='aa bb cc'&lt;BR /&gt;pro3$ y=$x&lt;BR /&gt;pro3$ echo $y&lt;BR /&gt;aa bb cc&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; In more complicated expressions, more quotation may be more helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; For future reference:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Note: I understand the WHY!!!&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; A statement like this conveys no useful information.&amp;nbsp; What, exactly,&lt;BR /&gt;do you know (or believe that you know)?&amp;nbsp; Are you saying that that you&lt;BR /&gt;understand how the shell "globs" a "*"?&amp;nbsp; Or that you understand how&lt;BR /&gt;quotation works?&amp;nbsp; Or what?&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; In many cases, the act of forming a question well will itself lead&lt;BR /&gt;you to the answer, which can save everyone some work.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 05:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-avoid-substitution-with-string-having-characters/m-p/6951460#M495384</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-03-27T05:01:50Z</dc:date>
    </item>
  </channel>
</rss>

