]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: support for word expansion of environment in parse_line
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 1 Oct 2020 12:32:35 +0000 (14:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Oct 2020 15:24:14 +0000 (17:24 +0200)
commitfa41cb6792ddcf39b800217337d7910d586ef922
treeeb4688b085ccd45ee40ddf9c6eaa741a83550baa
parentac32b4b98ca29e0e065a8e6725f1265adab51a33
MINOR: tools: support for word expansion of environment in parse_line

Allow the syntax "${...[*]}" to expand an environment variable
containing several values separated by spaces as individual arguments. A
new flag PARSE_OPT_WORD_EXPAND has been added to toggle this feature on
parse_line invocation. In case of an invalid syntax, a new error
PARSE_ERR_WRONG_EXPAND will be triggered.

This feature has been asked on the github issue #165.
doc/configuration.txt
include/haproxy/tools-t.h
src/cfgparse.c
src/tools.c