aboutsummaryrefslogtreecommitdiffstats
path: root/t/stdin-dashdash-dash-operand
blob: f9e41c668a6b540e00fad26794c2b9cc033efd20 (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