¿ªÔÆÌåÓý

Blank last line blues


 

Just to make you guys smile ...

In the world of Unix rather dopey old software had issues with last lines not ending with a LF. And you still get warnings and lots of modern editors add a blank line at the end of files as a matter of course. Moreover the conversions between LF and CRLF seem to add a line, sometimes.

And in CMS ... In Assembler files blank lines are not ignored, some excuse about punch cards. And of course CMS has fixed sized records etc etc.

So I carefully made sure my yata thingy religiously preserved? any empty lines at the end of files. Big mistake.

They just creep in ... Linux, windows, editors, git, the empty last line ... Well they breed.

Anyway ... I will have to change yata to remove the emply last line when extracting files on CMS. Funny but irritating!


 

On Thu 13 Feb 2020 at 14:28:24 -0800, adriansutherland67 wrote:
Just to make you guys smile ...

In the world of Unix rather dopey old software had issues with last
lines not ending with a LF.
I guess that is because once upon a time, on early Unix, a line was
defined as zero or more characters ended by a LF. So picky software can
rightly say that if there isn't a LF at the end, it isn't a line. I also
think that some common patterns for reading lines character by character
would indeed effectively overlook such lines.

-Olaf.
--
Olaf 'Rhialto' Seibert -- rhialto at falu dot nl
___ Anyone who is capable of getting themselves made President should on
\X/ no account be allowed to do the job. --Douglas Adams, "THGTTG"