#!/bin/sh -e . t/common.sh interactive printf '%s\n' > file \ "${HEAD} ours" \ head \ "${TAIL}" \ tail \ "${END} theirs" printf '%s\n' > file.expected \ head ( interactive_marker "${HEAD} ours" interactive_side head interactive_marker "${TAIL}" interactive_side tail interactive_marker "${END} theirs" interactive_prompt 1 1 interactive_help 2 interactive_prompt 1 1 ) > output.expected printf '%s' '?h' > input normal --interactive file 8output diff -u -- output.expected output >&2