=== modified file 'README' --- README 2019-02-13 12:07:30 +0000 +++ README 2017-12-15 00:49:11 +0000 @@ -101,10 +101,7 @@ "p" - create parent directories if they don't exist (mkdir -p) ? - Modifies following ! command. The command specified as argument will be run - to determine the following ! command should be run - (if ? command exits nonzero) and if so it's used once again after - to check that ! command performed required action (when ? command exits zero). + TODO flags: "i" - redirect stdin from the file for the command === modified file 'bin/fileset.awk' --- bin/fileset.awk 2019-02-13 12:07:30 +0000 +++ bin/fileset.awk 2017-05-05 06:43:15 +0000 @@ -107,15 +107,6 @@ cchar = substr(command, 1, 1) crest = substr(command, 2) - # check before the command is processed if we have dangling "?" - if(cchar != "!" && has_cond != "") { - printf "%s:%s: ? is not followed by ! (superfluous condition): %s\n", FILENAME, FNR, \ - cchar crest statement >"/dev/stderr" - if(!WARN_ONLY) { - exit 1 - } - } - # set current fname all subsequent operations will be performed on if(cchar == "/") { curpath = crest @@ -254,14 +245,12 @@ if(cchar == "?") { has_cond = func_num++ if(crest ~ /i/) { - funcs["check_" has_cond] = ( \ + funcs["cond_" has_cond] = ( \ "{ "statement"\n} <"fname \ ) } else { - funcs["check_" has_cond] = statement + funcs["cond_" has_cond] = statement } - statement = "" - continue } # if none above matched