"Shawn Walker" <[EMAIL PROTECTED]> wrote:

> >
> > (Or you need to proof that there are no /bin/sh scripts in use on Solaris
> > which execute differently under ksh/ksh93)
>
> ...ksh93 can be modified to provide backwards compatibility where possible.


This is not true, at least not if you limit the effort to reasonable values...

Your wild guess seems to be a result of not knowing why e.g. these commands

$ /sbin/sh -c 'foo=a; echo b | read foo; echo $foo'
a
$ /usr/bin/ksh93 -c 'foo=a; echo b | read foo; echo $foo'
b

give different results.

It is a result of different concepts in the parser and interpreter for
the shell syntax.

sh executes pipes from left to right while ksh executes them from right to left,
which results in "read foo" to be the foreground process on ksh and the 
background process with sh.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to