[exim-cvs] Docs: options after "run" of ${run } may not have… |
|
This message is part of the following thread: | |
---|---|
![]() | the complete thread tree sorted by date |
Commit: d5939cf05037d4a70ca43ec4d436c2e699530444 Parent: e093f239f9d0c6e5f590d9979bcbc3e60c540edf Author: Jeremy Harris <jgh146exb@???> AuthorDate: Sat Apr 1 19:48:15 2023 +0100 Committer: Jeremy Harris <jgh146exb@???> CommitDate: Sat Apr 1 19:48:15 2023 +0100
Docs: options after "run" of ${run } may not have space. Bug 2932 --- doc/doc-docbook/spec.xfpt | 5 +++-- src/src/expand.c | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-)
-.vitem "&*${run <&'options'&> {*&<&'command&~arg&~list'&>&*}{*&<&'string1'&>&*}&&& +.vitem "&*${run<&'options'&> {*&<&'command&~arg&~list'&>&*}{*&<&'string1'&>&*}&&& {*&<&'string2'&>&*}}*&" .cindex "expansion" "running a command" .cindex "&%run%& expansion item" This item runs an external command, as a subprocess. -One option is supported after the word &'run'&, comma-separated. +One option is supported after the word &'run'&, comma-separated +and without whitespace.
If the option &'preexpand'& is not used, the command string is split into individual arguments by spaces diff --git a/src/src/expand.c b/src/src/expand.c index 6dcd45062..9f80439cb 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -5630,7 +5630,6 @@ while (*s) /* Handle options to the "run" */
while (*s == ',') - { if (Ustrncmp(++s, "preexpand", 9) == 0) { late_expand = FALSE; s += 9; } else @@ -5641,7 +5640,6 @@ while (*s) (int)(t-s), s); goto EXPAND_FAILED; } - } Uskip_whitespace(&s);
if (*s != '{') /*}*/
This message was posted to the following mailing lists: | ||||
---|---|---|---|---|
exim-cvs Mailing List Info | Nearby Messages | ![]() | [exim-cvs] Expansions: Fix ${readsocket } to do nicer TLS close | [exim-cvs] tidying | ![]() |
Tahini and Hummus and Cumin Development Archives administrated by cumin Admins | Lurker (version 2.3) |