[64422] trunk/base/setupenv.bash.in
raimue at macports.org
raimue at macports.org
Fri Mar 5 06:39:27 PST 2010
Revision: 64422
http://trac.macports.org/changeset/64422
Author: raimue at macports.org
Date: 2010-03-05 06:39:24 -0800 (Fri, 05 Mar 2010)
Log Message:
-----------
steupenv.bash:
Do not set MANPATH if it is empty as man will automatically map PATH in this case
Modified Paths:
--------------
trunk/base/setupenv.bash.in
Modified: trunk/base/setupenv.bash.in
===================================================================
--- trunk/base/setupenv.bash.in 2010-03-05 08:59:05 UTC (rev 64421)
+++ trunk/base/setupenv.bash.in 2010-03-05 14:39:24 UTC (rev 64422)
@@ -56,6 +56,10 @@
function export_manpath() {
mpath="@prefix_expanded@/share/man"
+ if [ -z "$MANPATH" ]; then
+ return
+ fi
+
local IFS=":"
for p in $MANPATH; do
if [ "$p" == "$mpath" ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100305/7fd182fa/attachment.html>
More information about the macports-changes
mailing list