]> Cypherpunks.ru repositories - goredo.git/blob - t/apenwarr/260-whichdo/defaults.do
More apenwarr/redo redo-whichdo behaviour resembling
[goredo.git] / t / apenwarr / 260-whichdo / defaults.do
1 exec >&2
2
3 a=$(cd fakesub2 && redo-whichdo d/snork)
4 # if sh doesn't abort after the above, then it found a .do file as expected
5
6 b=$(cat <<EOF
7 d/snork.do
8 d/default.do
9 default.do
10 EOF
11 )
12
13 if [ "$a" != "$b" ]; then
14     printf 'redo-whichdo mismatch.\n\ngot:\n%s\n\nexpected:\n%s\n' "$a" "$b"
15     exit 11
16 fi