#!/usr/bin/env bash knoe_first_nonempty() { local v for v in "$@"; do if [[ -n "$v" ]]; then printf '%s' "$v" return 0 fi done return 1 }