<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:Sans">
<p><span style="color:#4baf4d">&gt; Is it enough to remove the 3 last &quot;newlines&quot; , i.e. just to have the awk</span></p>
<p><span style="color:#4baf4d">&gt; command in one line ?</span></p>
<p></p>
<p>No, all four  \&lt;newline&gt; should be removed:</p>
<p>if !($?<span style="color:#ff0000">cmplx</span>) then</p>
<p>set <span style="color:#ff0000">cmplx</span>=`cut  .....   ;END{print c}'`</p>
<p><span style="color:#ff0000">endif</span></p>
<p>So, I think this is not the <span style="color:#ff0000">awk's</span> fault, though they are different in two cases.</p>
<p>Good:  <span style="color:#ff0000">awk</span> --version      GNU <span style="color:#ff0000">Awk</span> 3.1.4</p>
<p>Bad:  <span style="color:#ff0000">awk</span> -W version     <span style="color:#ff0000">mawk</span> 1.3.3 Nov 1996</p>
<p></p>
<p>In my old version command &quot;<span style="color:#ff0000">csh</span>&quot; calls &quot;<span style="color:#ff0000">tcsh</span>&quot;. </p>
<p>In bad case command &quot;<span style="color:#ff0000">csh</span>&quot; calls some &quot;<span style="color:#ff0000">bsd</span>-<span style="color:#ff0000">csh</span>&quot; and I cannot obtain version. </p>
<p>If I force to call <span style="color:#ff0000">tcsh</span> instead of this &quot;<span style="color:#ff0000">bsd</span>-<span style="color:#ff0000">csh</span>&quot; then it correctly determines the complex case. So, it is enough to make a redirection of <span style="color:#ff0000">csh</span> to <span style="color:#ff0000">tcsh</span>. I'll ask our administrator why this exotic version appeared.</p>
<p>man <span style="color:#ff0000">csh</span> (good) gives:</p>
<p>&quot;a newline  preceded  by a '\' is equivalent to a blank, but inside quotes this sequence results in a newline.&quot;</p>
<p>Bad <span style="color:#ff0000">csh</span> gives:</p>
<p>&quot;Within pairs of ''' or '&quot;' characters, a newline preceded by a '\' gives a true newline character.&quot;</p>
<p>Maybe first describes only the case '\&lt;newline&gt;' </p>
<p>and second is true for more complex: '......\&lt;newline&gt;....'</p>
<p></p>
<p><span style="color:#4000ff">&gt; &gt; Invalid null command</span></p>
<p><span style="color:#4000ff">&gt; &gt;  MIXER END</span></p>
<p><span style="color:#4000ff">&gt; &gt;</span></p>
<p><span style="color:#4000ff">&gt; &gt; I see that in my case it comes from the x script, the part:</span></p>
<p><span style="color:#4000ff">&gt; &gt; set cmplx=`cut $file.struct -b -6|\</span></p>
<p><span style="color:#4000ff">&gt; &gt; awk 'BEGIN{c=&quot;c&quot;};{if ($0 == &quot;-1 0 0&quot;) {\</span></p>
<p><span style="color:#4000ff">&gt; &gt; getline; {if ($0 == &quot; 0-1 0&quot;){\</span></p>
<p><span style="color:#4000ff">&gt; &gt; getline; {if ($0 == &quot; 0 0-1&quot;){c= &quot;&quot;}}}}}};\</span></p>
<p><span style="color:#4000ff">&gt; &gt; END{print c}'`</span></p>
<p><span style="color:#4000ff">&gt; &gt;</span></p>
<p><span style="color:#4000ff">&gt; &gt; If I change these lines into one long line (without  \&lt;newline&gt; ) the</span></p>
<p><span style="color:#4000ff">&gt; &gt; error disappears.</span></p>
<p></p>
<p>Best regards</p>
<p><span style="color:#ff0000">Lyudmila</span> <span style="color:#ff0000">Dobysheva</span></p>
<p>------------------------------------------------------------------</p>
<p>Phys.-<span style="color:#ff0000">Techn</span>. Institute of Ural Br. of Russian Ac. of Sci.</p>
<p>426001 Izhevsk, <span style="color:#ff0000">ul</span>.<span style="color:#ff0000">Kirova</span> 132</p>
<p>RUSSIA</p>
<p>------------------------------------------------------------------</p>
<p>Tel.:7(3412) 442118 (home), 218988(office), 250614(Fax)</p>
<p>E-mail: <span style="color:#ff0000">lyu</span>@<span style="color:#ff0000">otf</span>.<span style="color:#ff0000">fti</span>.<span style="color:#ff0000">udmurtia</span>.<span style="color:#ff0000">su</span>, <span style="color:#ff0000">lyu</span>@<span style="color:#ff0000">otf</span>.<span style="color:#ff0000">pti</span>.<span style="color:#ff0000">udm</span>.<span style="color:#ff0000">ru</span></p>
<p><span style="color:#ff0000">http</span>://<span style="color:#ff0000">fti</span>.<span style="color:#ff0000">udm</span>.<span style="color:#ff0000">ru</span>/<span style="color:#ff0000">ltt</span>/personals/<span style="color:#ff0000">dobysh</span>.<span style="color:#ff0000">htm</span></p>
<p>------------------------------------------------------------------</p>
</body></html>