diff options
author | Phil Pennock <pdp@exim.org> | 2018-07-31 15:54:17 -0400 |
---|---|---|
committer | Phil Pennock <pdp@exim.org> | 2018-07-31 15:57:20 -0400 |
commit | 1bca4f5fc7d74ba4ec1ced72eef8b806ae2be989 (patch) | |
tree | 27bdc7695a95c32d34f83d0cd5e9000cfc731ec5 /src | |
parent | 71c158466dab1d452d450843e8c204a42200b7a8 (diff) |
Make -n work with macros too
Have `exim -n -bP macro FOO` just print the value of the macro `FOO`,
without the `name=` prefix.
This is the same handling as used for option values.
If the invoker asks for multiple macros in one invocation, with `-n`,
then that's their problem.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/readconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/src/readconf.c b/src/src/readconf.c index fbf6d6b49..bf024efc9 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -2880,6 +2880,8 @@ else if (Ustrcmp(type, "macro") == 0) { if (names_only) printf("%s\n", CS m->name); + else if (no_labels) + printf("%s\n", CS m->replacement); else printf("%s=%s\n", CS m->name, CS m->replacement); if (name) |