greet() { local name=${1-} if [[ -z $name ]] then print -u2 -- 'usage: greet ' return 2 fi print -r -- "Hello, $name" }