diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 2024-05-26 05:48:40 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 2024-05-26 05:48:40 +0000 |
| commit | 73eb53813fe3a2245edbeb670902e4bb9d41e288 (patch) | |
| tree | 1666d52159df093604b08411d724868d1dff256a /usr.bin/man | |
| parent | cadd2ca21765ebcb95b77ec94977b4e74e1edc1b (diff) | |
Diffstat (limited to 'usr.bin/man')
| -rwxr-xr-x | usr.bin/man/man.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index af638527f497..24a0464689cc 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -322,7 +322,7 @@ man_check_for_so() { # We need to loop to accommodate multiple .so directives. while true do - line=$($cattool "$manpage" 2>/dev/null | head -n1) + line=$($cattool "$manpage" 2>/dev/null | grep -E -m1 -v '^\.\\"[ ]*|^[ ]*$') case "$line" in .so*) trim "${line#.so}" decho "$manpage includes $tstr" |
