[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #57630] test-groff clobbers environment's GROFF_*_PATH variables
From: |
Dave |
Subject: |
[bug #57630] test-groff clobbers environment's GROFF_*_PATH variables |
Date: |
Sat, 18 Jan 2020 23:39:30 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<https://savannah.gnu.org/bugs/?57630>
Summary: test-groff clobbers environment's GROFF_*_PATH
variables
Project: GNU troff
Submitted by: barx
Submitted on: Sat 18 Jan 2020 10:39:28 PM CST
Category: Core
Severity: 3 - Normal
Item Group: New feature
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
The test-groff script simulates an installation by defining its own
GROFF_BIN_PATH, GROFF_FONT_PATH, and GROFF_TMAC_PATH values pointing to the
build directory.
Unfortunately, instead of appending to any existing values of these variables,
it overwrites them, so the user's environment is ignored.
For this script to more closely emulate running an installed groff, it should
prepend any existing values to the ones it defines. This would make it treat
these variables the way a groff installation would, searching the user's
environment (if any) first, then the "system" one.
For example:
if [ "$GROFF_FONT_PATH" ]
then
GROFF_FONT_PATH="$GROFF_FONT_PATH$SEP"
fi
GROFF_FONT_PATH=$GROFF_FONT_PATH\
[... rest of script's normal definition for this variable ...]
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57630>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #57630] test-groff clobbers environment's GROFF_*_PATH variables,
Dave <=