[Wien] Again "Invalid null command"

Peter Blaha pblaha at theochem.tuwien.ac.at
Sun Feb 24 22:29:19 CET 2008


Very good analysis of the problem!

Can you check two things:

version of the awk command  (awk --version)

Is it enough to remove the 3 last "newlines" , i.e. just to have the awk 
command in one line ?

> 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. In my former version of shell it correctly treated this place, 
> but in a new version it gives "Invalid null command" here. 
> 
> Good work with    \<newline>:
> Linux version 2.6.14-1.1653.1aspsmp (build at amd64.asplinux.com.ua) (gcc version 
> 4.0.2 20051125 (Red Hat 4.0.2-8))
> GNU bash, version 3.00.16(1)-release-(i686-pc-linux-gnu)
> tcsh 6.14.00 (Astron) 2005-03-25 (i386-intel-linux) options 
> wide,nls,dl,al,kan,rh,color,filec
> 
> Bad work with    \<newline>:
> Linux version 2.6.22-14-generic (buildd at palmer) (gcc version 4.1.3 20070929 
> (prerelease) (Ubuntu 4.1.2-16ubuntu2))
> GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
> tcsh 6.14.00 (Astron) 2005-03-25 (i486-intel-linux) options 
> wide,nls,dl,al,kan,rh,nd,color,filec
> 
> Maybe this depends on a specific installation of the system, some exotic 
> variable of shell is set in a wrong way?
> 
> 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
> ------------------------------------------------------------------
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien


More information about the Wien mailing list