aboutsummaryrefslogtreecommitdiffstats
path: root/t/stdin-dash-operand
blob: 42d960add73df193c4ba37993ae7a1e2a4cfb2e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e
. t/common.sh

printf '%s\n' > file \
	"${HEAD} HEAD" \
	same \
	"${TAIL}" \
	same \
	"${END} branch"

printf '%s\n' > file.expected \
	same

cp -- file input
normal --reduce - < input > output
cmp -s -- file input
diff -u -- output file.expected >&2

also_interactive r < input > output
cmp -s -- file input
diff -u -- output file.expected >&2