aboutsummaryrefslogtreecommitdiffstats
path: root/t/stdin-no-operand
blob: 54a3cb4af02ec0a4210518782dfc7ab06ed10b28 (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