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

GRASS GIS trac at osgeo.org
Wed Jun 4 14:16:54 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 glynn):

 Replying to [comment:6 kyngchaos]:

 > > 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.

 FWIW, "which" isn't mandated by POSIX, while "type" is. Also, "which"
 doesn't work with built-ins or aliases (not that tac or tail are likely to
 be either).

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


More information about the grass-dev mailing list