Commit 51451a631bd725183c72963e8facc56a59a0ef14
1 parent
3f88613c
Handle special case that $manpath is undefined.
The code
MANPATH="$man_dir:$(manpath)"
led to problems on opensolaris systems, as $manpath is not defined there. The following code works
manpath=${manpath:-}
MANPATH="$man_dir:${manpath}"
The first line sets an empty default value. Note also that the () brackets have been replaced by curly brackets.
Showing
1 changed file
with
2 additions
and
1 deletions
src/ctools-setup.in
| ... | ... | @@ -173,7 +173,8 @@ fi |
| 173 | 173 | # Set MANPATH |
| 174 | 174 | # ============== |
| 175 | 175 | if [ "x$MANPATH" = x ]; then |
| 176 | - MANPATH="$man_dir:$(manpath)" | |
| 176 | + manpath=${manpath:-} | |
| 177 | + MANPATH="$man_dir:${manpath}" | |
| 177 | 178 | else |
| 178 | 179 | MANPATH=`echo ":$MANPATH:" | \ |
| 179 | 180 | sed "s%:$man_dir:%:%g" | sed "s%::*$%%"` | ... | ... |