I would like to have an option on whether to print function arguments with a
newline or
keep them on the same line.
Currently I am using tho following, but is there a more straightforward way to
do this?
This starts printing from argument nl+1 onwards.
case $nwline in
1) printf '%s\n' "${@:nl+1}" ;;
*) printf '%s' "${@:nl+1}" ;;
esac