Edgy and nano: You mean nano -w, don’t you?

This is going to take a little getting used to, but it seems anything I do with nano in Edgy needs -w to keep it from wrapping around in hideous arcs.

So this is a mental note:

  • sudo nano -w /etc/X11/xorg.conf
  • sudo nano -w /etc/apt/sources.list
  • sudo nano -w /etc/fstab
  • sudo nano -w /etc/network/interfaces
  • sudo nano -w anything else I can think of.

A habit worth getting used to.

About these ads

4 Responses to “Edgy and nano: You mean nano -w, don’t you?”

  1. 1 William T. Foxtrot 2006/12/18 at 5:03 AM

    I’m confused. . . what exactly is the problem with just using nano? What do you mean by “hideous arcs”?

  2. 2 kmandla 2006/12/18 at 9:09 AM

    Sorry, I should have been more precise. It seems nano under Edgy (and I only say that because I didn’t seem to have this problem in Dapper or Breezy) defaults to wrap lines that extend past the right-hand screen border. As soon as you break a line with a new space, nano shifts down to the next line, sort of like a word processor would — that’s the “hideous arc.”

    The problem is, if you write out the file like that, it doesn’t re-concatenate those lines. So something like, for example, an fstab file (which is very long and clumsy now that the UUID numbers are part of it) that needs to be a long straight sequence to be read properly, becomes clipped or just built wrong.

    The -w option prevents nano from wrapping, and avoids miswriting those files when you’re editing them. A minor change, and probably not worth all the fuss I made over it. :)

  3. 3 dosnlinux 2006/12/18 at 12:27 PM

    Why not just make an alias?

  4. 4 kmandla 2006/12/18 at 3:31 PM

    I guess I could. It seems like one of those small habits that is worth adopting anyway, if only because it’s probably good for me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Visit the Wiki!

Some recent desktops

May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF

May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games

Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers


This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,663 hits



Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: