Joerg Schilling <joerg.schill...@fokus.fraunhofer.de> wrote:

> I did not change the Bourne Shell behavior as I believe that the 
> export behavior is compatibile with POSIX and as this behavior is more useful 
> than what other shells do.
>
> > $ ./sh -o posix -c 'a=1; { a=2; } < /dev/null; echo "$a"'
> > 1
> >
> > Again 2 required by POSIX.

Do you have a pointer to the POSIX text that forbids a subshell in this case 
when stdin is redirected?


> What I had to do to come to that point was to support /bin/sh as automatic 
> POSIX enabler, add support for "local" and implement the IFS field splitting 
> as 
> done by ksh88 after I assumed to be ready.

Sorry for the wrong order, the paragrap above was related to Gentoo.

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to