[systemd-devel] systemctl edit TODO item

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Mar 18 02:09:13 PDT 2015

On Wed, Mar 18, 2015 at 12:13:39PM +0100, Ronny Chevalier wrote:
> Hi,
> About the TODO item of systemctl edit:
> "Upon editor exit, lines with one # are removed, lines with two # are
> left with one #, etc."
> I don't really agree, because if you have some comments in your
> drop-in file, you will have to remember every time you edit it to
> prepend one # to each one of your comments if you don't want them to
> be removed.
The idea was to prepend all existing comments with an extra hash.
Then lines with a single hash can be used without conflicting with
existing comments and the old comments can be restored exactly to their
previous form after editing is done.

# comment

during edit
## comment
# edit-intstructions and whatnot

after edit
# comment


More information about the systemd-devel mailing list