On 9/11/10 11:03 AM, Jonathan Callen wrote: > Just as a proof-of-concept, here's one implementation of such a > function, allowing for an arbitrary number of arguments: > > use_echo() { > while [[ $# -gt 1 ]]; do > if use "$1"; then > echo "$2" > return > fi > shift 2 > done > [[ $# -eq 1 ]] && echo "$1" > }
Looks good to me. If it doesn't get included in any eclass, I will just paste it to the chromium ebuilds. :) Paweł
signature.asc
Description: OpenPGP digital signature