]> skyeroc.xyz Git - dgamelaunch/commit
multi-arg exec and nested ${pref1:${pref2}}
authorTangles <andyrthomson@gmail.com>
Sun, 16 Feb 2020 01:47:22 +0000 (12:47 +1100)
committerTangles <andyrthomson@gmail.com>
Sun, 16 Feb 2020 01:57:59 +0000 (12:57 +1100)
commit26244b3b42b00bfd5bc363d4461e102b0e8dc9dc
treed06ab3deeaa99f0c3fc127d7992aa6e94fc1420f
parent1a78b1b23814ec39ded2cf4aff4eda2aebf5f593
multi-arg exec and nested ${pref1:${pref2}}

exec "command" "several args separated by spaces in 1 string".
I could not figure out how to nicely deal with multiple args in the parser,
so I just left it as DGL_CMD1, and do the separation manually.
Does the separation before dgl_format_str substitutions, to prevent
relying on potentially user-supplied input not having extra spaces embedded.

nested preferences - this just fixes a bug where we assumed the token
ended on the first }.
dgamelaunch.c
dgl-common.c