[Wien] minor bug in x_lapw, wien2k_08.1

Michal Wierzbicki wierzba at if.pw.edu.pl
Wed Apr 16 11:16:28 CEST 2008


At line 183 the unix "cut" utility is called with options
after the filename. This is contrary to "cut" man page which requires
options before filename. This is not a problem in Linux, 
where often programs run different as advertised in man pages. 
However, when I run wien2k in FreeBSD I got an error.

I append the following patch:

--- x_lapw.orig	2008-04-16 11:08:32.000000000 +0200
+++ x_lapw	2008-04-16 11:08:46.000000000 +0200
@@ -180,7 +180,7 @@
  endif

  if !($?cmplx) then
-set cmplx=`cut $file.struct -b -6|\
+set cmplx=`cut -b -6 $file.struct|\
  awk 'BEGIN{c="c"};{if ($0 == "-1 0 0") {\
  getline; {if ($0 == " 0-1 0"){\
  getline; {if ($0 == " 0 0-1"){c= ""}}}}}};\


More information about the Wien mailing list