Hi!

12-Апр-2004 22:38 [EMAIL PROTECTED] (Bernd Blaauw) wrote to
[EMAIL PROTECTED]:

>>      Question: by default, only CON device have bits "stdin" and "stdout"
>> (mask 0x3 in attribute word). What happen if I use "CTTY NUL" - is this
>> equal to plain redirecting to NUL or shell sets stdin+stdout bits in
>> attribute word (INT 21/4401, as I understand)?
BB> input is also set to NUL device.

     _How_ it set? Why I ask: I already talks how Eugeny Roshal differs CON
and NUL devices (by stdin/stdout bits set for CON). If CTTY NUL sets these
bits (also) for NUL, then now we can't differ NUL and CON.

     Why this is important. Imagine, some programs detects redirection and
asks prompt for next screen only if it "not redirected" (it. its output
linked to device with stdin/stdout bits set). Now, if we redirect streams by
CTTY NUL _and_ CTTY sets stdin/stdout for NUL devices, then discussed
program will think, that NUL is CON and will try to wait answer from NUL
device. Infinity loop.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to