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