Tiny Core Extensions > TCE Bugs

Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"

(1/2) > >>

shawnwilliamson:
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

bmarkus:
In which repo?

g_dg:
I have this same issue. I'm using "http://repo.tinycorelinux.net/12.x/x86".

Rich:
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.
--- End quote ---
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: ---sudo busybox cp /usr/local/etc/nanorc /usr/local/etc/
--- End code ---
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.

g_dg:
That fixed the problem for me.
Thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version