Folding for shell scripts