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

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

 Ah.  Looks like type is a shell builtin on OSX (and a script in
 /usr/bin/type to execute the builtin).

 So, `type -t tac` and `type -t tail` to check for existence looks like the
 equivalent to `which` (ie no output if it's not found).

 For checking for the -r flag for tail (for the immediate problem in OSX)
 -- maybe, similar to your tac example, `tail -r < /dev/null`?  Tests OK
 here (missing tail and an illegal flag both return errors).

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


More information about the grass-dev mailing list