[EMAIL PROTECTED] wrote:

>
>
> >
> >You cannot look at too few claims from POSIX.
> >
> >the definitions for read say that read affects the shell execution 
> >environment
> >unless it is run on a sub shell.
> >
> >As in "cat from-file | read value" the read command is not run in a sub shell
> >environment, it needs to affect the environment.
>
>
> You should not have deleted the rest of my email which clearly quotes
> the standard saying:
>
>       Additionally, each command of a multi-command pipeline is in a subshell
>       environment; as an extension, however, any or all commands in a pipeline
>       may be executed in the current environment. All other commands shall be
>       executed in the current shell environment.

As the terrm "multi-command pipeline" is not defined, it is questionable what 
this text should mean....

If it makes sense to define a "multi-command pipeline" at all, it needs to be 
different from a simple pipeline.

"cat from-file | read value" is doubtlessly a simple pipeline ;-)

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
[email protected]

Reply via email to