WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"  (Read 5085 times)

Offline shawnwilliamson

  • Newbie
  • *
  • Posts: 3
Hello again,

Every time I edit a file with nano (my favorite editor) it gives the error:
Error in /usr/local/etc/nanorc on line 2: Unknown option "const"

It doesn't cause problems. Nano works correctly, it just gives an error.
I wanted to edit the offending file, but it's mounted read only and I haven't read yet how to unsquash/edit/ re squash an extension for my own amusement yet.

Thank you again for tinycore!

Shawn

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
In which repo?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline g_dg

  • Newbie
  • *
  • Posts: 3
I have this same issue. I'm using "http://repo.tinycorelinux.net/12.x/x86".

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Hi g_dg
Welcome to the forum.

It may be due to this (emphasis mine):
Quote
       set constantshow
          Constantly display the cursor position in the  status  bar.   (The  old  form  of  this
          option, 'set const', is deprecated.)
  This overrides the option quickblank.
Found here:
http://manpages.ubuntu.com/manpages/bionic/man5/nanorc.5.html

Check if the file  /usr/local/etc/nanorc  contains the line  set const.
If it does, convert the symlink to a file:
Code: [Select]
sudo busybox cp /usr/local/etc/nanorc /usr/local/etc/Then edit the file and change  set const  to  set constantshow  and save the file. You may have to do this step as root.
Start nano and see if the error is gone. If it is, you can add it to your backup for the time being.

Offline g_dg

  • Newbie
  • *
  • Posts: 3
That fixed the problem for me.
Thanks.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Hi g_dg
You are welcome. Thanks for confirming that fixed it.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
This issue has been reported again and has been addressed here:
http://forum.tinycorelinux.net/index.php/topic,25273.0.html