JYATL's REPORTlib
Table of Contents
1 Introduction
This greatly truncated version serves to introduce
the report_not...
family of functions.
A condition is typically TRUE if something is NOT the case.
The report_notargcount is shown with two functions which support the whole family.
2 Functions usage myname argcount
report_usage () { : date: 2018-02-16; : date: 2018-03-30; echo USAGE $(myname 3): $* 1>&2 } report_notargcount () { : date: 2018-02-16; [[ $2 -ge $1 ]] && return 1; report_usage need at least $1 arg/s: ${*:3} } myname () { : ~ [n]; : returns name of caller OR callers caller ...; : date: 2018-02-16; echo ${FUNCNAME[${1:-1}]} }
3 References
This paper is part of my Commonplace Book, and online: