<HTML>
<HEAD>
<TITLE>d.vect.thematic problem</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Earlier today, I reported that d.vect.thematic is not running on my Mac, returning the error<BR>
<BR>
csh: if: Expression Syntax.<BR>
d.vect.thematic: awk required, please install awk or gawk first<BR>
<BR>
<BR>
The code in d.vect.thematic that is causing this is the following...<BR>
<BR>
#### check if we have awk<BR>
if [ ! -x &quot;`which awk`&quot; ] ; then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;$PROG: awk required, please install awk or gawk first&quot; 2&gt;&amp;1<BR>
&nbsp;&nbsp;&nbsp;&nbsp;exit 1<BR>
fi<BR>
<BR>
If I run...<BR>
<BR>
&gt;&gt;which awk<BR>
<BR>
...from the a plain vanilla bash Terminal.app window, it returns ...<BR>
<BR>
/usr/bin/awk<BR>
<BR>
But if I run it from the GRASS Terminal.app window, it returns...<BR>
<BR>
csh: if: Expression Syntax.<BR>
<BR>
This is with William Kyngesburye&#8217;s binaries of 2 Sept. 2006. Any idea what&#8217;s wrong?<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics and Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
</SPAN></FONT>
</BODY>
</HTML>