Kyle McDonald wrote:
> Roland Mainz wrote:
> > Technically I only wrote the patch to end the bickering (since I
> > sometimes wish people would write more code and do less bickering) and
>
> I apologize. I didn't intend to start an argument, or for it to sound
> like bickering.

Erm... no need to apoligize... technically I have to apologize for using
the word "bickering" (as others have pointed out) when I was thinking
about "debate" (=welll. to be honestly somewhere in my brain I was
thinking "oh no... not again" when I saw Wiliam's posting the first
time... ;-/ ).

> I know all of these decisions have many constraints that govern them. I
> was more curious to hear the decision process that led to this.

See Jan's email
(http://mail.opensolaris.org/pipermail/caiman-discuss/2008-April/003476.html)
...

> In my experience the two shells are pretty interchangable, and though I
> don't really know the differences, I know that some exist. I was looking
> to learn more about what might have been in bash that attracted
> development to it.

In the case if Jan's script there are no differences between both shells
in functionality. "bash" and "ksh93" have common ancestors (see
http://mail.opensolaris.org/pipermail/opensolaris-code/2007-March/004621.html)
and did influence each other's development so you have to dig a bit
harder to hit the differences when porting from "bash" to "ksh93". The
reverse way is a bit more bumpy since ksh93 has far more datatypes and a
wider range of variable types (e.g. compound variables which can be
combined with arrays which can lead to infinitly deep variable trees
(and then you have "nameref" variables which can act similar C
pointers)).

> > to show how the script could make use of ksh93 features (your script
> > would AFAIK work with both bash and ksh93, I only did some cleanup and
> > some changes to use more ksh93 features (e.g. compound variable arrays
> > which are AFAIK quite usefull in this case where you have label/value
> > pairs (e.g. I merged the two arrays in your script into one array where
> > each array element contains two values)) ...
>
> Thank you for this script too. It was even more educational.

No problem... if you have other stuff you'd like to port (e.g. something
which uses lists, arrays, trees, complex pattern matching or other
complex data structures) let me now.. I'm happy to provide as many
examples as you need... :-)

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to