Description of problem: man uses /usr/bin/nroff to render man pages. nroff creates a temporary file, and then redirects some output to that file (/usr/bin/nroff, line 50). The redicretion fails if the "noclobber" option is set. This leads to the pager displaying an empty document. Version-Release number of selected component (if applicable): groff-1.18.1.1-3 How reproducible: Type the following commands in a bash shell: $ echo "set -o noclobber" > zzz $ BASH_ENV="`pwd`/zzz" man man Actual results: less will display an empty file. No errors are reported. Expected results: less displays the man page. Additional info: Proposed fix: change the offending line as follows: old: cat ${1+"$@"} > ${TMPFILE} new: cat ${1+"$@"} >| ${TMPFILE} The >| operator forces redirection even if noclobber is set.
Created attachment 111761 [details] adds set +o noclobber to script This is an alternate patch, quick and dirty. Alternately could be done as the original submitter proposed.
Yes, the change from > to >| seems to be as the simplest solution to this issue. Thanks for the patch anyway. *** This bug has been marked as a duplicate of 127492 ***