[GRASS-dev] Re: [GRASS GIS] #181: tac command missing in OSX
GRASS GIS
trac at osgeo.org
Fri Jun 6 02:35:14 EDT 2008
#181: tac command missing in OSX
------------------------+---------------------------------------------------
Reporter: kyngchaos | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: minor | Milestone: 6.3.1
Component: default | Version: 6.3.0
Resolution: | Keywords: v.in.garmin, v.in.mapgen
------------------------+---------------------------------------------------
Comment (by hamish):
Now we are getting somewhere. One little bug:
{{{
if [ -n "$TAC" ] ; then
## do nothing
elif type tac ; then
TAC=tac
else
TAC=awk_tac
fi
}}}
`##do nothing` with no command before it is a syntax error. you would need
to run a noop like "true". but it is better to rewrite the logic of the
test so that there is no empty case.
also output of `type tac` would need to be redirected to /dev/null.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/181#comment:12>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list