[Wien] Again "Invalid null command"

Lyudmila Dobysheva lyu at otf.pti.udm.ru
Sat Feb 23 16:06:38 CET 2008


Dear WIEN developers,

A few times there were messages about "Invalid null command" before every 
command in scf cycle. It looks like this:
Invalid null command.
 LAPW0 END
 LAPW1 END
 LAPW2 END
Invalid null command.
 CORE  END
Invalid null command.
 CORE  END
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
------------------------------------------------------------------


More information about the Wien mailing list