]> git.mdlowis.com Git - proto/labwc.git/commit
action: do not expand env vars in Exec action
authorJohan Malm <jgm323@gmail.com>
Thu, 21 Sep 2023 22:09:05 +0000 (23:09 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 23 Sep 2023 13:52:59 +0000 (14:52 +0100)
commit881d788bee20e337428c566784977b1e7a3f2b29
tree9ba91b781c9b6d27cbd19aaff4911c017f682d7a
parentc6c1f8e04b1ef622adb7c13347efa8d7719d8aa9
action: do not expand env vars in Exec action

...<command> argument (but still resolve tilde).

This makes it easier to write sh -c '' constructs without turning labwc
into a shell parser in order to expand environment variables, whilst
respecting single quotes and escaped characters as well as ignoring
subshells syntax like $(foo) and backticks.

Also, fix bug where buffer length+alloc get out-of-sync
docs/labwc-actions.5.scd
docs/labwc-config.5.scd
include/common/buf.h
src/action.c
src/common/buf.c
src/config/session.c