>>>>> On Wed, 24 Feb 2010, Jonathan Callen wrote:

> +     # Don't append another ";" when a valid category value is provided.
> +     [[ -n ${type} && ${type} != *';' ]] && type+=";"

This can be shortened to:

    [[ -n ${type} ]] && type="${type%;};"

or even shorter:

    type="${type%;}${type:+;}"

Ulrich

Reply via email to