Nano breaks bash scripts with default config in edgy

Bug #62666 reported by Tom Bruno
2
Affects Status Importance Assigned to Milestone
nano (Debian)
Fix Released
Unknown
nano (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: nano

If not specified --noconvert on command line, nano saves files that were opened with ^M instead of new lines (CR-LF). This is BAD as it breaks bash scripts.

if open a new file, it does not do this.

if open a file for editing then save changes, it does.

in Ubuntu Edgy with nano 1.3.12-2

This just started happening recently (like today)

Revision history for this message
Tom Bruno (crweb) wrote :

this only occurs with some files. Some files can start out as unix format, then be saved and are now dos/mac format. other files don't do this.

Revision history for this message
Tom Bruno (crweb) wrote :

This is a example of one of the files i have that is converted incorrectly.

Revision history for this message
Kjell Braden (afflux) wrote :

I can confirm this on up-do-date ubuntu hardy, nano 2.0.6-2. Therefore, I reported it at debian's bug-tracker so we can sync the package once they fix it.

Changed in nano:
status: New → Confirmed
Revision history for this message
Kjell Braden (afflux) wrote :

This bug was forwarded to upstream: http://lists.gnu.org/archive/html/nano-devel/2007-11/msg00000.html

It got commited to upstream's CVS.

Kjell Braden (afflux)
Changed in nano:
importance: Undecided → Medium
Changed in nano:
status: Unknown → Confirmed
Changed in nano:
status: Confirmed → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Fixed in 2.0.7-1

Changed in nano:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.