Please sync nano 2.0.9-2 from Debian unstable [was: Breaks config files by adding hard line breaks]
Bug #39866 reported by
Tero Karvinen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nano (Debian) |
Fix Released
|
Undecided
|
Unassigned | ||
nano (Ubuntu) |
Fix Released
|
Medium
|
Jordi Mallach | ||
Bug Description
Nano breaks config files by adding hard line breaks. Using nano with sudo should automatically turn on --nowrap, like in other systems.
To reproduce
1) sudo nano foo
2) type a long line
The line is broken to multiple lines. The linebreaks are stored as real linebreaks in the file.
Broken lines confuse very easily. For example, tftpd and dhcpd don't print any error messages to screen when they refuse to start because of broken lines. Fedora makes nano use --nowrap automatically when run as root.
Suggestion: enable --nowrap when nano is run with sudo.
Changed in nano: | |
status: | Incomplete → Confirmed |
Changed in nano: | |
status: | Unknown → New |
To post a comment you must log in.
Does this bug happen if you run nano after "sudo su -" ?
nano should not wrap if it detects it's being run by root. Sudo might be confusing it though.