# HG changeset patch # User Oleksandr Gavenko # Date 1411683534 -10800 # Node ID 06a040a989845afd75a8bbfbdf7eeb99d32a8f8b # Parent efc6cf05e9197fa20c4e434d48fd4f24af5086bb Detect empty LD_LIBRARY_PATH. diff -r efc6cf05e919 -r 06a040a98984 .env --- a/.env Fri Sep 19 20:03:02 2014 +0300 +++ b/.env Fri Sep 26 01:18:54 2014 +0300 @@ -36,19 +36,18 @@ export PATH=/sbin:$PATH fi -if [[ ! $LD_LIBRARY_PATH =~ $HOME/usr/lib ]]; then - export LD_LIBRARY_PATH=$HOME/usr/lib -else +[[ -z $LD_LIBRARY_PATH ]] && LD_LIBRARY_PATH=$HOME/usr/lib +if [[ ! :$LD_LIBRARY_PATH =~ :$HOME/usr/lib ]]; then export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$HOME/usr/lib fi -if [[ -z "$MANPATH" ]]; then +if [[ -z $MANPATH ]]; then export MANPATH=~/usr/share/man: elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then export MANPATH=$MANPATH:$HOME/usr/share/man: fi -if [[ -z "$INFOPATH" ]]; then +if [[ -z $INFOPATH ]]; then export INFOPATH=~/usr/share/info: elif [[ ! $INFOPATH =~ $HOME/usr/share/info: ]]; then export INFOPATH=$INFOPATH:$HOME/usr/share/info: