# `${@#pat}` and `${*#pat}`: the trim applies to each positional parameter, # and then the usual `"$@"` / `"$*"` rules decide the fields. ksh93 and # bash agree on every line, which is where the expectations come from. set -- abc abd printf "<%s>" "${@#ab}"; echo printf "<%s>" ${@#ab}; echo printf "<%s>" "${*#ab}"; echo printf "<%s>" ${*#ab}; echo printf "<%s>" "${@%c}"; echo printf "<%s>" "${@%%*d}"; echo printf "<%s>" "${@##a*b}"; echo set -- "a b" "a c" printf "<%s>" "${@#a }"; echo printf "<%s>" ${@#a\ }; echo printf "<%s>" "${*% c}"; echo set -- printf "[%s]" "${@#a}"; echo set -- one two IFS=: printf "<%s>" "${*#o}"; echo