<?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 retrieve DOUBLE QUOTES from arguments? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070342#M119326</link>
    <description>&lt;P&gt;I just encountered a problem to get the sub-strings that were originally and correctly input as argument below:&lt;/P&gt;

&lt;P&gt;foo.exe file.dat ""Time &lt;S&gt;" "Fx &lt;M&gt;" "xPos &lt;M&gt;""&lt;/M&gt;&lt;/M&gt;&lt;/S&gt;&lt;/P&gt;

&lt;P&gt;I need to retrieve the arg2 containing three variables to be 3 sub-strings, however, I got 6.&lt;/P&gt;

&lt;P&gt;Is there any trick behind the input?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Kong&lt;/P&gt;

&lt;P&gt;Ps: I found the below, but not TRUE on my pc.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.environment.getcommandlineargs%28v=vs.110%29.aspx"&gt;https://msdn.microsoft.com/en-us/library/system.environment.getcommandlineargs%28v=vs.110%29.aspx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;gives &lt;SPAN class="code"&gt;MyApp \\\\\"alpha \"beta ==&amp;gt;&amp;gt; MyApp, \\"alpha, "beta&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 13:49:02 GMT</pubDate>
    <dc:creator>Xj_Kong</dc:creator>
    <dc:date>2016-02-12T13:49:02Z</dc:date>
    <item>
      <title>how to retrieve DOUBLE QUOTES from arguments?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070342#M119326</link>
      <description>&lt;P&gt;I just encountered a problem to get the sub-strings that were originally and correctly input as argument below:&lt;/P&gt;

&lt;P&gt;foo.exe file.dat ""Time &lt;S&gt;" "Fx &lt;M&gt;" "xPos &lt;M&gt;""&lt;/M&gt;&lt;/M&gt;&lt;/S&gt;&lt;/P&gt;

&lt;P&gt;I need to retrieve the arg2 containing three variables to be 3 sub-strings, however, I got 6.&lt;/P&gt;

&lt;P&gt;Is there any trick behind the input?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Kong&lt;/P&gt;

&lt;P&gt;Ps: I found the below, but not TRUE on my pc.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.environment.getcommandlineargs%28v=vs.110%29.aspx"&gt;https://msdn.microsoft.com/en-us/library/system.environment.getcommandlineargs%28v=vs.110%29.aspx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;gives &lt;SPAN class="code"&gt;MyApp \\\\\"alpha \"beta ==&amp;gt;&amp;gt; MyApp, \\"alpha, "beta&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 13:49:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070342#M119326</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2016-02-12T13:49:02Z</dc:date>
    </item>
    <item>
      <title>I think you will have to use</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070343#M119327</link>
      <description>&lt;P&gt;I think you will have to use GET_COMMAND to retrieve the entire command-line without any interpretation and parse it yourself. The problem you see is likely due to the command-line parser not seeing the nested doubled quotes as nested.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:28:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070343#M119327</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2016-02-12T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Yes, I tried GET_COMMAND in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070344#M119328</link>
      <description>&lt;P&gt;Yes, I tried GET_COMMAND in Cygwin, but it still strips off the inner double quotes.&lt;/P&gt;

&lt;P&gt;In MS-Dos, it succeeds by typing this, but obviously too lengthy...&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;foo.exe file.dat """"Time &lt;S&gt;""" """Fx &lt;M&gt;""" """xPos &lt;M&gt;""""&lt;/M&gt;&lt;/M&gt;&lt;/S&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:55:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070344#M119328</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2016-02-12T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Try this instead: </title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070345#M119329</link>
      <description>&lt;P&gt;Try this instead:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;program "'Time &lt;S&gt;' 'Fx &lt;M&gt;' 'xPos &lt;M&gt;'"&lt;/M&gt;&lt;/M&gt;&lt;/S&gt;&lt;/P&gt;

&lt;P&gt;The shell/command window will leave the inner single quotes as they and considers everything a single argument. Within your Fortran program you can use list-directed input (read(string,*)) to retrieve the individual parts.&lt;/P&gt;

&lt;P&gt;I tried this in a command window under Windows and in a shell window under Cygwin. Both remove the outer double quotes, but leave the inner single quotes intact&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 15:03:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-retrieve-DOUBLE-QUOTES-from-arguments/m-p/1070345#M119329</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2016-02-12T15:03:45Z</dc:date>
    </item>
  </channel>
</rss>

