Subject: Re: discrepency beteen /bin/echo and builtin echo of /bin/sh
To: NetBSD-current Discussion List <current-users@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: current-users
Date: 06/12/2002 16:22:17
[ On Sunday, June 9, 2002 at 22:11:21 (-0700), Greywolf wrote: ]
> Subject: Re: discrepency beteen /bin/echo and builtin echo of /bin/sh
>
> # > I do (usually) try to write scripts that that a 'proper'
> # > bourne sh (eg the solaris one) will run.
> #
> # Well in that case (i.e. the solaris one), you're already lost.
> 
> Oh?  Enlighten us, please.  As a solaris admin for a living, I think
> I need to hear this.

/usr/bin/sh on Solaris, at least up to SunOS-5.7, is not a modern
standards compliant command shell.  It will not run some standards
conforming shell scripts.  Sticking to just its features and limitations
in this day and age is silly and clearly unnecessary given that:

> # If you were to use /usr/xpg4/bin/sh you'd be much better off.

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>