> This is a bashism. The script should begin #!/bin/bash, not #!/bin/sh. Or rewrite it in plain sh: l="" for i in ${MAIL_PLUGINS}; do case $i in imap_quota|mail_log) ;; *) l="$l $i";; esac done MAIL_PLUGINS="${l# }"