#!/bin/zsh setopt no_unset extended_glob warn_create_global die() { printf >&2 '%s\n' "$@" exit 1 } main() { local name=$1 arg local -a quoted shift for arg in "$@"; do quoted+=( "$(s6-quote -- "$arg")" ) done powerbox-plumb "login.capability.$name/${(j: :)quoted}" } typeset -f -t main main "$@"