RE: [Freedos-kernel] ^Z

2004-03-12 Thread Roberto Mariottini
Hi Arkady,

 pressing ^Z
 in non-empty line does nothing (except that line end is ignored),
 only first
 ^Z on line is processed as end of input.

  Strange, but under MS-DOS I get same behavior. Another bug in MS-DOS?

I think this is the correct behaviour, IIRC in theory in text files an
End-Of-File must always be preceeded by an End-Of-Line. So I think that a
Ctrl-Z inside a line (so not immediately after a CR/LF) is interpreted as
normal charcter input, with no special End-Of-File meaning.

The confusion is still big, as many sources contradict each other on what a
text file is, and implementations too.
For example, Pascal function Eoln is always true if Eof is true, even if
ther isn't actually a CR/LF before Ctrl-Z (IIRC).

Ciao



---
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_id=1470alloc_id=3638op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] ^Z

2004-03-12 Thread Arkady V.Belousov
Hi!

12--2004 14:13 [EMAIL PROTECTED] (Alain) wrote to
[EMAIL PROTECTED]:

A Some very ols OS used ^Z do know the end of the stream and thus close
A the file. This behaciour can still be found in MS-DOS with the command:
A   copy con: file
A where ^Z terminates the input.

 Should be copy con file.

A MS-DOS kernel completely ignores ^Z in any file.

 This is right - MS-DOS presents another ways to deal with file limits.




---
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_id70alloc_id638op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel