<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:Sans">
<p><span style="color:#4baf4d">> Is it enough to remove the 3 last "newlines" , i.e. just to have the awk</span></p>
<p><span style="color:#4baf4d">> command in one line ?</span></p>
<p></p>
<p>No, all four \<newline> 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 "<span style="color:#ff0000">csh</span>" calls "<span style="color:#ff0000">tcsh</span>". </p>
<p>In bad case command "<span style="color:#ff0000">csh</span>" calls some "<span style="color:#ff0000">bsd</span>-<span style="color:#ff0000">csh</span>" and I cannot obtain version. </p>
<p>If I force to call <span style="color:#ff0000">tcsh</span> instead of this "<span style="color:#ff0000">bsd</span>-<span style="color:#ff0000">csh</span>" 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>"a newline preceded by a '\' is equivalent to a blank, but inside quotes this sequence results in a newline."</p>
<p>Bad <span style="color:#ff0000">csh</span> gives:</p>
<p>"Within pairs of ''' or '"' characters, a newline preceded by a '\' gives a true newline character."</p>
<p>Maybe first describes only the case '\<newline>' </p>
<p>and second is true for more complex: '......\<newline>....'</p>
<p></p>
<p><span style="color:#4000ff">> > Invalid null command</span></p>
<p><span style="color:#4000ff">> > MIXER END</span></p>
<p><span style="color:#4000ff">> ></span></p>
<p><span style="color:#4000ff">> > I see that in my case it comes from the x script, the part:</span></p>
<p><span style="color:#4000ff">> > set cmplx=`cut $file.struct -b -6|\</span></p>
<p><span style="color:#4000ff">> > awk 'BEGIN{c="c"};{if ($0 == "-1 0 0") {\</span></p>
<p><span style="color:#4000ff">> > getline; {if ($0 == " 0-1 0"){\</span></p>
<p><span style="color:#4000ff">> > getline; {if ($0 == " 0 0-1"){c= ""}}}}}};\</span></p>
<p><span style="color:#4000ff">> > END{print c}'`</span></p>
<p><span style="color:#4000ff">> ></span></p>
<p><span style="color:#4000ff">> > If I change these lines into one long line (without \<newline> ) the</span></p>
<p><span style="color:#4000ff">> > 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>