fileset

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

commit 70ec1b3c320f9de9b751aa7e08431d5aea51d3ae
parent 2665003f6211048801be09dc20c2773fcedbffc4
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Tue,  5 Jan 2016 16:21:24 +0100

error out on unknown statements, fix array declaration
Diffstat:
Mbin/fileset.awk | 6+++++-
Mbin/fslist | 2+-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/fileset.awk b/bin/fileset.awk @@ -263,7 +263,11 @@ function process_statement() { } # if none above matched - printf "unrecognised statement: %s\n", cchar crest statement >"/dev/stderr" + printf "%s:%s: unrecognised statement: %s\n", FILENAME, FNR, \ + cchar crest statement >"/dev/stderr" + if(!WARN_ONLY) { + exit 1 + } statement = "" } } diff --git a/bin/fslist b/bin/fslist @@ -5,7 +5,7 @@ setopt extendedglob globdots zmodload zsh/stat -typeset -A ftypes hardlinks +typeset -A ftypes hardlinks s ftypes=( # convert hex type to mnemonic character C s # socket c s