fileset

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

commit d412d2860ae84358c55833ef1286cf18f0ca1a2d
parent 002b45ed210932a36aaf086f22b0c003dddfe9d1
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Tue, 26 Jul 2022 21:22:24 +0200

Support for conditions in !f and !fc command subvariants.

Diffstat:
Mbin/fileset.awk | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/fileset.awk b/bin/fileset.awk @@ -227,10 +227,10 @@ function process_statement() { } else { shellfunc("req type_or_missing f", crest) } - print_d("{ "statement"\n} <"fname" >"fname".tmp.$$") - print_d("cat >"fname" "fname".tmp.$$") - print_i("c cat "fname".tmp.$$") - print_d("rm "fname".tmp.$$") + print_cond("\n" \ + "\t{ "statement"\n} <"fname" >"fname".tmp.$$ " or_die "\n" \ + "\tc cat "fname".tmp.$$\n" \ + "\trm "fname".tmp.$$ " or_die "\n") # use file as Input } else if(crest ~ /i/) { print_cond(statement, "<"fname) @@ -266,7 +266,7 @@ function process_statement() { # if none above matched printf "%s:%s: unrecognised statement: %s\n", FILENAME, FNR, \ - cchar crest statement >"/dev/stderr" + cchar crest " '" statement "'" >"/dev/stderr" if(!WARN_ONLY) { exit 1 }