Nils Goroll <[EMAIL PROTECTED]> wrote:

> Yupp, I got that.
>
> > pid=$(ptree $(pgrep cron)|read parent junk;echo $parent)
>
> This is fine in ksh, but not in bash as this depends on how reading from a 
> pipe 
> is implemented.

Well, this is a bash problem ;-)

The UNIX shell traditionally did run the rightmost part of a pipeline in 
forground. Bash reversed this as in csh.

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/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to