[GRASS-dev] Re: [GRASS GIS] #181: tac command missing in OSX

GRASS GIS trac at osgeo.org
Wed Jun 4 13:59:57 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 kyngchaos):

 Replying to [comment:4 1gray]:
 > I'd recommend to check for the existence of `tac` instead, like
 (untested):

 My patch does this with ''which tac'', a simple technique used used in
 many GRASS scripts.  What I meant was, if tac isn't found, and tail is
 found, somehow check if tail has the ''-r'' flag.

 But, this is really just an immediate fix to take care of the OSX case
 (and any other *nix without tac) where tail -r does exist.  As Glynn
 points out, neither tac nor tail -r are in POSIX/SUS standards.  A more
 portable fix would be nice in the long term.  I wonder if some sort of
 requirement in GRASS 7 development would be a good idea to stick to
 POSIX/SUS commands?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/181#comment:6>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list