#181: tac command missing in OSX ------------------------+--------------------------------------------------- Reporter: kyngchaos | Owner: [email protected] 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>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
