Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #202807

Re: stretch update overwrites nano file

From Tixy <tixy@yxit.co.uk>
Newsgroups linux.debian.user
Subject Re: stretch update overwrites nano file
Date 2018-11-27 08:00 +0100
Message-ID <wYFvI-3DE-5@gated-at.bofh.it> (permalink)
References <wYFvI-3DE-7@gated-at.bofh.it> <wYyaR-7zx-5@gated-at.bofh.it> <wYyaR-7zx-3@gated-at.bofh.it> <wYzJD-8nS-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2018-11-27 at 00:30 +0000, Brian wrote:
> On Mon 26 Nov 2018 at 17:03:35 -0600, David Wright wrote:
> 
> > On Mon 26 Nov 2018 at 16:31:38 (+0000), Bonno Bloksma wrote:
> > > What I just DID notice is that the upgrade replaced ALL nanorc
> > > files in the /usr/share/nano/ directory. All ca. 30 default files
> > > with timestamp Jul 16 2014 are gone and my default.nanorc file of
> > > a later date is gone as well.
> > > There are now around 40 files with timestamp Jan 11 2017.
> > 
> > AIUI those files are part of the nano package, so the upgrade
> > upgrades
> > them. It would be nice if one could substitute one's own foo.nanorc
> > file in a location like /etc/nano/ but I don't think the code for
> > that
> > has been written into the program.
> 
> As you say, anything in /usr/share/ is under the control of the
> packaging system and in, this case, "my default.nanorc" is not the
> user's default.nanorc but the system's. It can do what it wants with
> it. There is no bug here.
> 
> > > There was no warning that it was going to do so. Worse there are
> > > NO *.nanorc.dpkg-old files to replace the new color schemes with
> > > my old ones.
> > 
> > I think that facility only takes place for conffiles, and those
> > files
> > aren't conffiles. If they were, they would have to reside under
> > /etc.
> 
> Correct. Why should there be any warning when the packaging system
> is only doing what it is designed to do? A user would alter nano's
> behaviour in $HOME.

For the OP who probably isn't reading the list... The man pages for
nano (command "man nano") says at end "See Also nanorc", and "man
nanorc" says:

    During startup, nano will first read the system-wide settings, from
    /etc/nanorc (the exact path might be different), and then the user-
    specific settings, from ~/.nanorc.

So, the correct file to customise nano settings is either of those two
files.

-- 
Tixy

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: stretch update overwrites nano file David Wright <deblis@lionunicorn.co.uk> - 2018-11-27 00:10 +0100
  Re: stretch update overwrites nano file Brian <ad44@cityscape.co.uk> - 2018-11-27 01:50 +0100
    Re: stretch update overwrites nano file Tixy <tixy@yxit.co.uk> - 2018-11-27 08:00 +0100
      Re: stretch update overwrites nano file Brian <ad44@cityscape.co.uk> - 2018-11-27 20:40 +0100
        Re: stretch update overwrites nano file Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-11-28 08:20 +0100
          Re: stretch update overwrites nano file Brian <ad44@cityscape.co.uk> - 2018-11-28 21:50 +0100
      Re: stretch update overwrites nano file Richard Hector <richard@walnut.gen.nz> - 2018-11-28 05:20 +0100
  Re: stretch update overwrites nano file Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-11-27 04:10 +0100
    Re: stretch update overwrites nano file Brian <ad44@cityscape.co.uk> - 2018-11-27 12:20 +0100

csiph-web