[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort



On 2020-01-31 08:35, Richard Torrens (lists) wrote:

A block (or file) to be sorted is, ipso facto, a list. It will be a
different list after sorting. How will a couple of bytes added cause any
problem?

You don't know how that file's going to be processed.  If it's just used
for a human to look at, there's unlikely to be a problem.

But if it is read by another program which was written assuming that any
line that ends in CR is followed by more data, then putting a spurious
CR on the end of the final line will more than likely crash the program
that next reads the file.

--
Jeremy Nicoll - my opinions are my own