[CHANGE CONFIGURATION] ineffective sed commands (checking before submitting PR)
mokytis opened this issue · 2 comments
mokytis commented
Which platform does your requested change effect?
Linux/UbuntuLTS
Is your feature request related to a problem? Please describe.
There are several sed commands such as sed '/APT::Periodic::Unattended-Upgrade/d' /etc/apt/apt.conf.d/20auto-upgrades
that have no real effect on the file, but just output a manipulation of the file to stdout.
As you can see here the content isn't modified
$ cat testfile
this is
a test
file
it contains
some
file
contents
$ sed '/file/d' testfile
this is
a test
it contains
some
contents
$ cat testfile
this is
a test
file
it contains
some
file
contents
but if I add -i
it is
$ sed -i '/file/d' testfile
$ cat testfile
this is
a test
it contains
some
contents
I believe that this is stopping these sed commands from having the desired effect, although I may be misunderstanding their purpose.
I am happy to submit a PR fixing all instances of this if you also view it as a probelm.
AdamF1 commented
Thanks for this, we will investigate it and get back to you