Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102189515
D44798.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D44798.diff
View Options
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -33,6 +33,12 @@
# it is better to terminate it.
ulimit -t 20
+# do not ignore the exit status of roff tools
+set -o pipefail
+
+# ignore SIGPIPE exits because pagers may exit before reading all their input.
+trap '' SIGPIPE
+
# Usage: add_to_manpath path
# Adds a variable to manpath while ensuring we don't have duplicates.
# Returns true if we were able to add something. False otherwise.
@@ -312,7 +318,7 @@
# We need to loop to accommodate multiple .so directives.
while true
do
- line=$($cattool "$manpage" | head -n1)
+ line=$($cattool "$manpage" 2>/dev/null | head -n1)
case "$line" in
.so*) trim "${line#.so}"
decho "$manpage includes $tstr"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 5:26 PM (19 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14563447
Default Alt Text
D44798.diff (782 B)
Attached To
Mode
D44798: man: do not ignore the exit status of roff tools
Attached
Detach File
Event Timeline
Log In to Comment