| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# Test handling of \- in the right-hand side of a NAME section. |
| 4 |
|
| 5 |
: "${srcdir=.}" |
| 6 |
# shellcheck source-path=SCRIPTDIR |
| 7 |
. "$srcdir/testlib.sh" |
| 8 |
|
| 9 |
: "${LEXGROG=lexgrog}" |
| 10 |
|
| 11 |
init |
| 12 |
|
| 13 |
write_page lextest 1 "$tmpdir/usr/share/man/man1/lextest.1.gz" UTF-8 gz '' \ |
| 14 |
'lextest \- see lextest \-\-help' |
| 15 |
cat >"$tmpdir/3.exp" <<EOF |
| 16 |
$tmpdir/usr/share/man/man1/lextest.1.gz: "lextest - see lextest --help" |
| 17 |
EOF |
| 18 |
run $LEXGROG "$tmpdir/usr/share/man/man1/lextest.1.gz" >"$tmpdir/3.out" |
| 19 |
expect_files_equal 'multiple whatis definitions' \ |
| 20 |
"$tmpdir/3.exp" "$tmpdir/3.out" |
| 21 |
|
| 22 |
finish |