diff options
author | makepost <makepost@firemail.cc> | 2019-05-10 18:24:26 +0300 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-05-10 19:19:50 -0500 |
commit | 4ed8782eddfa0faf52ec5c273559166840fec776 (patch) | |
tree | 31fd303552b0aa54fc72f89d2065d73705aacc87 /tests | |
parent | 3b9d89d673547eb0e01e9c4ffcd921ac49afb54d (diff) | |
download | toybox-4ed8782eddfa0faf52ec5c273559166840fec776.tar.gz |
Walk -M /dir:/dir0:/dirN in man.
Iterate over MANPATH and ordered sections using a manpath() helper
equivalent of indenting logic of man x, man 1 x, and man -k each with a
strsep loop.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/man.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/man.test b/tests/man.test index 65b8a06f..0f3ad1db 100644 --- a/tests/man.test +++ b/tests/man.test @@ -208,7 +208,15 @@ testing "-k -k" "$MAN -k -k" "numbers.1.bz2 - test -k\n" "" "" testing "-k d.*h" "$MAN -k 'd.*h'" "numbers.3.gz - No dash.\n" "" "" testing "-k ers.1" "$MAN -k ers.1" "numbers.1.bz2 - test -k\nnumbers.5 - See numbers.1\n" "" "" +mkdir -p walrus/man1 +echo Local development override. | bzip2 >walrus/man1/numbers.1.bz2 +testing "-M /dir:/dir0" "man -M walrus:banana numbers" " Local development override.\n\n" "" "" +testing "-M /dir:/dir0 -k ." "man -M walrus:banana -k ." "numbers.1.bz2 - Local development override.\nnumbers.1.bz2 - test -k\nnumbers.3.gz - No dash.\nnumbers.5 - See numbers.1\n" "" "" +testing "-M '' x" "man -M '' numbers 2>&1" "man: no numbers\n" "" "" +testing "-M '' 1 x" "man -M '' 1 numbers 2>&1" "man: section 1 no numbers\n" "" "" +testing "-M '' -k ." "man -M '' -k ." "" "" "" + # TODO: emerge section header newline # TODO: fdm,man-pages man1p/, .nf, rare tags -rm -rf banana +rm -rf banana walrus |