Jürgen Keil <[EMAIL PROTECTED]> wrote:

> Standards also describe this feature
> ("The stderr stream is expected to be open for reading and writing."),
> e.g. here:
>
>     http://www.opengroup.org/onlinepubs/009695399/functions/stdin.html

Note that POSIX does not define path names and thus /dev/tty is non-standard 
and non-portable. The only portable way for a POSIX program to read responses
from the user even in case that stdin is redirected is to read from stderr.

This has at least a tradition of 30 years on UNIX.

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