From 29059804f7708413843687c1764bc845d374a82d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 3 Nov 2017 13:58:23 +1300 Subject: Remove idempotency assert for sd2u(1df)/su2d(1df) Commit cd8e9cc applies a cleaner implementation of these tools but loses the idempotency: * Repeated su2d applications will result in double \r, so \r\r\n * Repeated s2ru applications will result in an extra newline at the end of the file, because the whole file will be interpreted as one line However, I am OK with this, as I think of the operation as simpler and more predictable, and I wouldn't apply it as a means to "force" a file of unknown or various line-ending types to one type. --- man/man1/sd2u.1df | 2 +- man/man1/su2d.1df | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/man1/sd2u.1df b/man/man1/sd2u.1df index f07ebdb9..ee00c473 100644 --- a/man/man1/sd2u.1df +++ b/man/man1/sd2u.1df @@ -13,7 +13,7 @@ program | .B sd2u .SH DESCRIPTION Applies awk(1) to change DOS \\r\\n (CRLF) line endings to UNIX \\n line -endings. Lines already in UNIX format should be unchanged. +endings. .SH SEE ALSO awk(1), su2d(1df), d2u(1df), u2d(1df) .SH AUTHOR diff --git a/man/man1/su2d.1df b/man/man1/su2d.1df index aa6a8821..22aa80bd 100644 --- a/man/man1/su2d.1df +++ b/man/man1/su2d.1df @@ -13,7 +13,7 @@ program | .B su2d .SH DESCRIPTION Applies awk(1) to change UNIX \\n line endings to DOS \\r\\n (CRLF) line -endings. Lines already in DOS format should be unchanged. +endings. .SH SEE ALSO awk(1), sd2u(1df), d2u(1df), u2d(1df) .SH AUTHOR -- cgit v1.2.3