Bug#1025420: exim4: ${run}expansion fail Bug stiill open [TT#2568022]

Andreas Metzler ametzler at bebt.de
Wed Oct 25 15:24:35 BST 2023


On 2023-10-23 SerNet Support Kevin Ivory <support at sernet.de> wrote:
[...]
> That binary does not fix the problem of quote with space included:

> # /usr/sbin/exim4 -be '${run{/usr/bin/echo ${quote:hello world}}}'
> Failed: Expansion of "${quote:hello" from command "/usr/bin/echo ${quote:hello world}" in ${run} expansion failed: missing } at end of string
[...]

${run expansion changed in 4.96:
"If the option preexpand is not used, the command string is split into
individual arguments by spaces and then each argument is expanded."

i.e.
        /usr/bin/echo ${quote:hello world}
is split into
        /usr/bin/echo
        ${quote:hello
        world}
and the second string yields an expansion error.
Use
/usr/sbin/exim4 -be '${run,preexpand{/usr/bin/echo ${quote:hello world}}}'
to get the old behavior.

cu Andreas



More information about the Pkg-exim4-maintainers mailing list