Op 03-10-2020 om 15:44 schreef Jafar Al-Gharaibeh:
> Is there a way to use nano in restricted mode but still do syntax coloring?
Out of curiosity: in what scenario are you using a restricted nano?
We have a product where we want the end user to be able to view/edit a few files but nothing else, exactly what restricted mode is designed to do. We already have a "restricted" shell that restricts what the user can and can't do, rnano fits in perfectly with the use case.
You may find --rcfile=... (since version 4.8) useful in that scenario,
to load syntax files and set parameters but disallow the user changing
any settings.
Is --rcfile meant to be used in addition to -R ? i.e restricted and with custom configs ?
I did look at the sources yesterday and noticed the version is up to 5.2, might as well go with the latest version if I'm building from sources. Debian already has everything setup for 5.2
Building a debian package should be straightforward.
Thanks for the great work Benno,
Regards,
Jafar