[GRASS-dev] Re: [GRASS GIS] #81: scripts: "echo -n" not portable
GRASS GIS
trac at osgeo.org
Wed Mar 5 23:40:43 EST 2008
#81: scripts: "echo -n" not portable
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: hamish
Type: defect | Status: assigned
Priority: blocker | Milestone: 6.3.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by kyngchaos):
If using echo without -n doesn't work for some reason, I found
that/bin/echo on OSX 10.5 DOES work, it's the shell version of echo on
10.5 that doesn't have -n.
The echo man page suggests using printf to suppress the newline char, for
portability.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/81#comment:2>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/
More information about the grass-dev
mailing list