Jörg Sommer <joerg@xxxxxxxxxxxx> writes: > What do you think about this version: > > cleanup_before_quit () { > rm -rf "$DOTEST" && > for ref in $(git for-each-ref --format='%(refname)' ${mark_prefix%/}) > do > git update-ref -d "$ref" "$ref" || return 1 > done > } Yeah, except you would want to dqquote "${mark_prefix%/}" part. Also this being a "clean-up" phase, I wonder if we want to stop at the first error (e.g. should unremovable "$DOTEST" leave marks behind? should unremovable one mark leave other marks that happen to sort after it behind?). -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html