Comment 7 for bug 39866

Revision history for this message
Anders Kaseorg (andersk) wrote : Re: Breaks config files by adding hard line breaks

The problem is that sudoedit invokes nano as a normal user, rather than as root. So it is not good enough for nano to disable wrapping only when running as root. That was kind of a braindead distinction anyway, because there are plenty of files you might want to edit as a normal user that are just as likely to be corrupted by nano’s automatic insertion of newlines. nano should be configured with --disable-wrapping or “set nowrap” by default.