diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-04-23 22:43:20 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-04-24 10:05:04 +0200 |
commit | 250e9fadbcc0ca90e697d7efb40855b054ed3b8f (patch) | |
tree | dc7a2c14372d378e114fdd634d55d80afb179534 /src/test/test-unit-file.c | |
parent | e1a7f622e7f9831c07294ad9ffc866d48b2b61a5 (diff) | |
download | systemd-250e9fadbcc0ca90e697d7efb40855b054ed3b8f.tar.gz |
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.
Diffstat (limited to 'src/test/test-unit-file.c')
-rw-r--r-- | src/test/test-unit-file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-unit-file.c b/src/test/test-unit-file.c index 6b72fc90fd..3fd4ac9e5d 100644 --- a/src/test/test-unit-file.c +++ b/src/test/test-unit-file.c @@ -662,6 +662,7 @@ static void test_install_printf(void) { expect(i, "%N", "name"); expect(i, "%p", "name"); expect(i, "%i", ""); + expect(i, "%j", "name"); expect(i, "%u", user); expect(i, "%U", uid); |