aboutsummaryrefslogtreecommitdiff
path: root/contrib/groff/src
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-04-26 12:29:12 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-04-26 12:29:12 +0000
commit289950f4f3dc579450e96dd864f36471b2b32ce4 (patch)
tree173ad9312fdab913170b2c196bfc885a6fc21f1a /contrib/groff/src
parent1d6caf52401862090072b744c8ab9fd329f76865 (diff)
downloadsrc-289950f4f3dc579450e96dd864f36471b2b32ce4.tar.gz
src-289950f4f3dc579450e96dd864f36471b2b32ce4.zip
Fix usage of GROFF_BIN_PATH.
Notes
Notes: svn path=/head/; revision=76025
Diffstat (limited to 'contrib/groff/src')
-rw-r--r--contrib/groff/src/roff/nroff/nroff.man2
-rwxr-xr-xcontrib/groff/src/roff/nroff/nroff.sh4
2 files changed, 2 insertions, 4 deletions
diff --git a/contrib/groff/src/roff/nroff/nroff.man b/contrib/groff/src/roff/nroff/nroff.man
index f7f6d38576e6..2f4270222c37 100644
--- a/contrib/groff/src/roff/nroff/nroff.man
+++ b/contrib/groff/src/roff/nroff/nroff.man
@@ -107,7 +107,7 @@ shows the version number.
.B GROFF_BIN_PATH
A colon separated list of directories in which to search for the
.B groff
-executable. If unset, `@BINDIR@' is used.
+executable before searching in PATH. If unset, `@BINDIR@' is used.
.SH NOTES
This shell script is basically intended for use with
.BR man (1),
diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh
index f2e02f39d777..e16472e61617 100755
--- a/contrib/groff/src/roff/nroff/nroff.sh
+++ b/contrib/groff/src/roff/nroff/nroff.sh
@@ -92,10 +92,8 @@ done
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
-OLD_PATH=$PATH
: ${GROFF_BIN_PATH=@BINDIR@}
export GROFF_BIN_PATH
-PATH=$GROFF_BIN_PATH
-PATH=$OLD_PATH groff $safer -Wall -mtty-char $T $opts ${1+"$@"}
+PATH=$GROFF_BIN_PATH:$PATH groff $safer -Wall -mtty-char $T $opts ${1+"$@"}
# eof