confz

git mirror of https://ccx.te2000.cz/bzr/confz
git clone https://ccx.te2000.cz/git/confz
Log | Files | Refs

commit b59e8780a33be90526ffb50cdffd0af65f872cd5
parent 0991cc6cf884cd09de78a03f0f6bf1e258a81808
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Mon, 20 Nov 2017 17:24:38 +0100

Print out bin/confz-arguments passed to the main routine.
Diffstat:
Mbin/confz | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/bin/confz b/bin/confz @@ -210,15 +210,26 @@ require() { confz_main_check() { local arg local -a args + local -a printout for arg in "$@"; do if [[ $arg == ';' ]]; then require $args + for arg in $printout; do + printf "%s=%s\n" $arg ${(qqq)vars[$arg]} + done args=() + printout=() else + if [[ $arg == %* ]]; then + printout+=( ${${arg%%=*}#%} ) + fi args+=( $arg ) fi done (( $#args )) && require $args + for arg in $printout; do + printf "%s=%s\n" $arg ${(qqq)vars[$arg]} + done (($check_only)) && return 0 fail_reason="performed $#actions_performed actions, recheck"