On Sat, Apr 16, 2022 at 08:21:34PM +0200, Michał Górny wrote: > > +# @USAGE: <command> [<args>...] > > +# @DESCRIPTION: > > +# Executes 'command' with any given arguments and exits on failure unless > > +# called under 'nonfatal'. > > +edo() { > > + elog "$@" > > einfo?
Way I see it, this could've even been just "echo", aka econf doesn't use einfo to show the ./configure command either but just simple echo. e.g. if using edo to replace stuff like # ./configure is not real autoconf! local cmd=( ./configure --args ${EXTRA_ECONF} ) echo ${cmd[*]}" "${cmd[@]}" || die "cmd failed: ${cmd[*]}" But einfo worksforme either way. Alternatively I guess it could also take switches for display behavior if don't want to have many functions using up the namespace. Not like a command would normally start with a dash (e.g. `edo -b command` is fine). -- ionen
signature.asc
Description: PGP signature