On 8/8/07, Shawn Walker <[EMAIL PROTECTED]> wrote:
> On 08/08/07, Jonathan Edwards <[EMAIL PROTECTED]> wrote:
> >
> > On Aug 8, 2007, at 12:18, Alan Coopersmith wrote:
> >
> > > Jonathan Edwards wrote:
> > >> why not just make it an install option:
> > >> /bin/sh?
> > >> [  ] Bourne
> > >> [  ] Korn
> > >> [  ] Bourne Again
> > >> [  ] C
> > >> [  ] Zoidberg
> > >> of course choosing any church may make you a heretic to others
> > >
> > > How would any scripts that start with #!/bin/sh actually work then?
> > >
> >
> > you'd either have to write to the lowest common denominator [hard]
> >
> > /or/
> >
> > we could just use /bin/sh as a translation layer to figure out which
> > shell *should* be run based on preference or syntax [easier] .. using
> > #!/bin/sh is almost like using "dude" in conversation - it's a little
> > ambiguous and hardly a standardized programming interface
>
> Hear hear! Programmers that depend on /bin/sh being bash should be
> drawn and quartered (figuratively speaking of course).

I thought we're talking about making /bin/sh being ksh93, NOT bash
Using bash would be the wrong direction. Indiana should make thinks
BETTER than Linux.

A few numbers:
$ time bash -c 'i=0 ; s="" ; while [ $i -lt 10000 ] ; do i=$((i+1)) ;
s="$(echo ${s}x)" ; done'

real    1m40.230s
user    1m10.660s
sys     0m7.548s

$ time ksh93 -c 'i=0 ; s="" ; while [ $i -lt 10000 ] ; do i=$((i+1)) ;
s="$(echo ${s}x)" ; done'

real    0m11.947s
user    0m8.641s
sys     0m1.540s

ksh93 is much faster (10x) and has many features like arrays which
take strings as index, structures, floating point math, fully
implements and conforms the POSIX sh standard and the version you
planned to integrate into Solaris includes a 64bit binary to deal with
more than 4GB of data.
Picking bash as default shell doesn't make sense and wrecks havoc
among your customers. First you promise them ksh93 and then deliver a
far less capable bash instead.

Bruno
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to