Subject: Re: crosscompile attempt: solaris/x86 -> netbsd/sparc
To: David Laight <david@l8s.co.uk>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-toolchain
Date: 03/27/2002 09:44:44
On Wed, 27 Mar 2002, David Laight wrote:

: >   Solaris's /bin/sh is broken in some fantastic and amazing ways.
:
: Not really!  it is a 'proper' bourne shell :-)

Not by POSIX or X/Open standards for sh(1).  It's a `historic' or
`traditional' Bourne shell, yes, but not a `proper' one.

: $ xy=:x:y
: $ IFS=:
: $ set $xy
: $ echo $1
:
: (traditional sh sets $1=x, ksh et al set $2=x)

You'll note that NetBSD's /bin/sh (not just ksh) has the latter, conformant,
behavior.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/