mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 13:16:57 +00:00
MINOR: init: make -cc support environment variables expansion
I found myself a few times testing some conditoin examples from the doc against command line's "-cc" to see that they didn't work with environment variables expansion. Not being documented as being on purpose it looks like a miss, so let's add PARSE_OPT_ENV and PARSE_OPT_WORD_EXPAND to be able to test for example -cc "streq(${WITH_SSL},yes)" to help debug expressions.
This commit is contained in:
parent
7edc0fde05
commit
a87e782a2d
@ -1808,7 +1808,7 @@ static void init(int argc, char **argv)
|
||||
size_t outlen = strlen(check_condition) + 1;
|
||||
|
||||
err = parse_line(check_condition, check_condition, &outlen, args, &arg,
|
||||
PARSE_OPT_DQUOTE | PARSE_OPT_SQUOTE | PARSE_OPT_BKSLASH,
|
||||
PARSE_OPT_ENV | PARSE_OPT_WORD_EXPAND | PARSE_OPT_DQUOTE | PARSE_OPT_SQUOTE | PARSE_OPT_BKSLASH,
|
||||
&errptr);
|
||||
|
||||
if (err & PARSE_ERR_QUOTE) {
|
||||
|
Loading…
Reference in New Issue
Block a user