]> git.ipfire.org Git - thirdparty/systemd.git/commit
Add %j/%J unit specifiers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Apr 2018 20:43:20 +0000 (22:43 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Apr 2018 08:05:04 +0000 (10:05 +0200)
commit250e9fadbcc0ca90e697d7efb40855b054ed3b8f
treedc7a2c14372d378e114fdd634d55d80afb179534
parente1a7f622e7f9831c07294ad9ffc866d48b2b61a5
Add %j/%J unit specifiers

Those are quite similar to %i/%I, but refer to the last dash-separated
component of the name prefix.

The new functionality of dash-dropins could largely supersede the template
functionality, so it would be tempting to overload %i/%I. But that would
not be backwards compatible. So let's add the two new letters instead.
man/systemd.unit.xml
src/core/unit-printf.c
src/shared/install-printf.c
src/test/test-unit-file.c
src/test/test-unit-name.c