Force safer mode of operation for man's use of *roff.

Obtained from: OpenBSD's nroff.sh 1.2 by aaron@openbsd.org
This commit is contained in:
Warner Losh 1999-07-30 05:20:17 +00:00
parent 44fe63e5e7
commit 758ce8b4e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49241
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ do
echo "$prog: option $1 requires an argument" >&2
exit 1
;;
-i|-[mrno]*)
-i|-S|-[mrno]*)
opts="$opts $1";
;;
@ -65,4 +65,4 @@ done
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
exec groff -Wall -mtty-char $T $opts ${1+"$@"}
exec groff -S -Wall -mtty-char $T $opts ${1+"$@"}

View file

@ -31,7 +31,7 @@ do
echo "$prog: option $1 requires an argument" >&2
exit 1
;;
-i|-[mrno]*)
-i|-S|-[mrno]*)
opts="$opts $1";
;;
@ -65,4 +65,4 @@ done
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
exec groff -Wall -mtty-char $T $opts ${1+"$@"}
exec groff -S -Wall -mtty-char $T $opts ${1+"$@"}