touch $expected $expectederr $actual $actualerr
cat > $expected <<EOF
-baz's boz
+1 /XXX/baz's boz
EOF
# whatnow's exit status is always 1 so that is not a failure
set +e
echo "attach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
-echo "detach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
+echo "detach 1" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
set -e
diff -u $expectederr $actualerr
-diff -u $expected $actual
+<$actual sed 's,/.*/,/XXX/,' >$actual.clean
+diff -u $expected $actual.clean