#!/bin/bash -e S=$(arcs -n) S=$(echo "$S" | sed 's/^/# /') M=$(vi- "# Please enter the commit message for your changes. Lines starting" "# with '#' will be ignored, and an empty message aborts the commit." "# " "$S" | grep -v -e '^#') echo "$M"