Re: List-directed input with no <CR> on last record




glen herrmannsfeldt wrote:
Richard E Maine wrote:

(snip)

I can believe that there are editors that do it that way. But I consider
that a bug. I can imagine no intentional design rationale that would
suggest it was a good idea to turn an empty file with no records into a
file with one empty record. I think that's just a classic "failure to
look at the boundary case" bug in implementation.

There might be files systems that can't support zero length files,
or zero length lines in files. CMS has some unusual restrictions, but I
can't remember then right now.


In the record oriented file system CMS does not allow a file of size
zero. In the byte file system, the rules are virtually (if not
completely) identical to unix. In the record oriented file system,
even with variable length record format, a text-oriented file will be
saved with a single space character if you attempt to delete all
content. During an edit session, the default is a pad of space
characters as if it were of fixed length record type of length 80
characters (trailing spaces are truncated on saving by default for text
(or html) files).

-- glen

.



Relevant Pages

  • Re: A Weird Beginning of a path
    ... David Candy hunted and pecked: ... the MS-DOS FAT file system ... supports 8 characters for the base file name and 3 characters for the ... Both file systems use the backslash character to separate directory ...
    (microsoft.public.windowsxp.general)
  • Re: I hate to bitch but bitch I must
    ... wanted to point out a bug, the bug means that there is an anomaly under ... much experience reading man pages, and seem to expect them to conform to ... some sort of English Literary standards that are entirely inapplicable. ... You can tune a file system, but you can't tune a fish. ...
    (freebsd-questions)
  • Re: IRP Create
    ... more about the file system and it also showed me that my file system ... Are you listening, Microsoft FS driver ... That bug never manifested itself in the filter sample provided ... Like everything else, the IFS kit slowly is improving, and the mini-filter ...
    (microsoft.public.development.device.drivers)
  • Re: Do any java.io classes support inserting text into a file?
    ... I was thinking that the file was stored as an array of characters rather than a piece of paper though, and there might be some way to move the pointer that points to the first element of the array back by the number of characters I have to prepend. ... Let us say that your file system uses disk blocks of 4096 bytes. ... But if it is not a multipla of 40956, ... If there was an application which manipulated large files, needed to make random, variable-sized insertions into them, and needed to run fast, then such a filesystem would be useful. ...
    (comp.lang.java.programmer)
  • Re: I hate to bitch but bitch I must
    ... > wanted to point out a bug, the bug means that there is an anomaly under ... much experience reading man pages, and seem to expect them to conform to ... some sort of English Literary standards that are entirely inapplicable. ... You can tune a file system, but you can't tune a fish. ...
    (freebsd-questions)

Loading