From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] nano: Update to 5.9 Date: Tue, 12 Oct 2021 10:40:10 +0100 Message-ID: <26E16FA2-AA87-45AA-8B7F-66C6293CC971@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7578759144720153616==" List-Id: --===============7578759144720153616== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, visudo launching nano would really surprise me :) -Michael > On 11 Oct 2021, at 21:57, Adolf Belka wrote: >=20 > Hi Jon, >=20 > On 11/10/2021 18:14, Jon Murphy wrote: >> Vim as default is fine! >>=20 >> The only default editor setting I know of is in fcron. >>=20 >> # Location of the default editor for "fcrontab -e" >> #editor =3D /usr/bin/vi >> editor =3D /usr/bin/nano >> Is there another? >>=20 > If you want to edit the sudoers file you have to use the visudo command whi= ch by default uses vi. >=20 > You can use nano with visudo by running >=20 > # EDITOR=3Dnano visudo >=20 > and to change the editor permanently add the following into the sudoers fil= e. >=20 > # Reset environment by default > Defaults env_reset > # Set default EDITOR to nano, and do not allow visudo to use EDITOR/VISUAL. > Defaults editor=3D/usr/bin/nano, !env_editor >=20 > Regards, >=20 > Adolf. >=20 >>=20 >>=20 >>> On Oct 11, 2021, at 8:07 AM, Michael Tremer = wrote: >>>=20 >>> Hello, >>>=20 >>>> On 10 Oct 2021, at 20:42, Jon Murphy wrote: >>>>=20 >>>> I=E2=80=99m not sure nano is "the" answer though I do like it. Just any= thing besides vim. >>>>=20 >>>> Vim is fine for developers. It is the non-developers that struggle. Th= is article explains it pretty well and it includes my struggles to exit! >>>>=20 >>>> https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million= -developers-exit-vim/ >>>>=20 >>>> Q: How do you generate a random string? >>>> A: Put a user in front of vi, and tell them to exit >>>=20 >>> LOL. Good one. >>>=20 >>> I wouldn=E2=80=99t be against adding nano to the core distribution, altho= ugh I would draw the line there and say that Joe is then out :) >>>=20 >>> However, I wouldn=E2=80=99t want to make it the default editor if that is= okay. >>>=20 >>> -Michael >>>=20 >>>>=20 >>>>=20 >>>>> On Oct 10, 2021, at 7:55 AM, Michael Tremer wrote: >>>>>=20 >>>>> Hello, >>>>>=20 >>>>> We have (or had) a couple of editors and I am quite against shipping th= em all. >>>>>=20 >>>>> Everyone has their favourites, and there will always be another one. >>>>>=20 >>>>> What is wrong with vim? >>>>>=20 >>>>> -Michael >>>>>=20 >>>>>> On 9 Oct 2021, at 22:07, Jon Murphy wrote: >>>>>>=20 >>>>>> All, >>>>>>=20 >>>>>> Is it possible to move `nano` from addon to core? It is SOOOOO much e= asier to use than vim. >>>>>>=20 >>>>>> I understand it is an easy installed addon but it seems like it really= belongs in "core". >>>>>>=20 >>>>>> Jon >>>>>>=20 >>>>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka wr= ote: >>>>>>>=20 >>>>>>> Reviewed-by: Adolf Belka >>>>>>>=20 >>>>>>> On 08/10/2021 19:22, Matthias Fischer wrote: >>>>>>>> For details see: >>>>>>>> https://www.nano-editor.org/news.php >>>>>>>>=20 >>>>>>>> Signed-off-by: Matthias Fischer >>>>>>>> --- >>>>>>>> lfs/nano | 6 +++--- >>>>>>>> 1 file changed, 3 insertions(+), 3 deletions(-) >>>>>>>>=20 >>>>>>>> diff --git a/lfs/nano b/lfs/nano >>>>>>>> index 3bb7806aa..237dfab20 100644 >>>>>>>> --- a/lfs/nano >>>>>>>> +++ b/lfs/nano >>>>>>>> @@ -24,7 +24,7 @@ >>>>>>>> include Config >>>>>>>> -VER =3D 5.8 >>>>>>>> +VER =3D 5.9 >>>>>>>> THISAPP =3D nano-$(VER) >>>>>>>> DL_FILE =3D $(THISAPP).tar.xz >>>>>>>> @@ -32,7 +32,7 @@ DL_FROM =3D $(URL_IPFIRE) >>>>>>>> DIR_APP =3D $(DIR_SRC)/$(THISAPP) >>>>>>>> TARGET =3D $(DIR_INFO)/$(THISAPP) >>>>>>>> PROG =3D nano >>>>>>>> -PAK_VER =3D 38 >>>>>>>> +PAK_VER =3D 39 >>>>>>>> DEPS =3D "" >>>>>>>> @@ -44,7 +44,7 @@ objects =3D $(DL_FILE) >>>>>>>> $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) >>>>>>>> -$(DL_FILE)_MD5 =3D d2249e3dd108c830df00efd7c1b79d86 >>>>>>>> +$(DL_FILE)_MD5 =3D 24b67a7a2e731d3a5ec6d154b4521d08 >>>>>>>> install : $(TARGET) >>>>>>>>=20 >>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 --===============7578759144720153616==--