Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: shawnwilliamson on March 25, 2021, 01:37:32 AM
-
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
-
In which repo?
-
I have this same issue. I'm using "http://repo.tinycorelinux.net/12.x/x86".
-
Hi g_dg
Welcome to the forum.
It may be due to this (emphasis mine):
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:
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.
-
That fixed the problem for me.
Thanks.
-
Hi g_dg
You are welcome. Thanks for confirming that fixed it.
-
This issue has been reported again and has been addressed here:
http://forum.tinycorelinux.net/index.php/topic,25273.0.html