diff options
-rwxr-xr-x | xmandoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmandoc b/xmandoc index 7a6486e..46348f5 100755 --- a/xmandoc +++ b/xmandoc @@ -1,7 +1,7 @@ #!/bin/sh # xmandoc MANPAGE - read manpage of possibly not installed package -xlocate "man/man..?/$1\.[0-9]" 2>/dev/null | +xlocate "man/man..\?/$1\.[0-9]" 2>/dev/null | { grep . || { echo "xmandoc: No entry for $1 found." 1>&2; exit 1; } } | while read pkg page; do xbps-query --cat=$page $pkg | mandoc -a |