run: clean up ExecCommandFlags serialization
authorMike Yuan <me@yhndnzj.com>
Wed, 10 Jul 2024 20:27:21 +0000 (22:27 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 20 Jul 2024 07:37:34 +0000 (09:37 +0200)
commitdb12f8432762edd4ab03ff23d1ebdf002fa59348
tree05a8b776811c51ce50ecbb4537dd74c33e7493a6
parent05c754bc7fe14e71721af6eb16194b9ad0690fb5
run: clean up ExecCommandFlags serialization

The current behavior is actually OK, since use_ex_prop = !arg_expand_environment,
but that's very implicit and using STRV_MAKE() this way feels icky.
Let's make this more readable, by using exec_command_flags_to_strv().
src/run/run.c