News for hackers. Stuff that matters.
Re:CR+LF Has a Long History by spc476 on Tuesday February 08, 2022 @02:17AM (#30255746)
Why is that a footgun? If it just piped the output to stdout, then to convert a file, you then have to

    $ dos2unix file >x
    $ mv x file
In my mind, overwriting the file is the Right Thing.
Re:CR+LF Has a Long History by romwell on Tuesday February 08, 2022 @03:27AM (#30256081)
The Right Thing would be to require an explicit -o <output filename> option to avoid modifying files without getting user's consent first.

Especially because the changes it makes are irreversible (e. g. when a text file has mixed unix/dos line endings).