summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-05-24 15:26:58 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-05-24 15:26:58 +0200
commitae30d60218e8d08069e32a7e0540cac4b60acd57 (patch)
tree21f70365b8d75c12cdfb42e520a728048e50bb40
parent6d127fd3274dcd551e175a9c0440f80aebcb2fc2 (diff)
In case DOMAIN contains nothing...
-rw-r--r--zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index 323188e..bd46323 100644
--- a/zshrc
+++ b/zshrc
@@ -32,7 +32,7 @@ USER=${USER:-`whoami`}
UID=${UID:-`id -u`}
HOST=${HOST:-$(hostname -s)}
DOMAIN=${DOMAIN:-${$(hostname -d 2>&-):-$(hostname -y 2>&-)}}
-[ $DOMAIN = "" -o $DOMAIN = "localdomain" -o $DOMAIN = "(none)" ] && DOMAIN=$(grep "^search " /etc/resolv.conf | cut -d' ' -f2)
+[ "$DOMAIN" = "" -o "$DOMAIN" = "localdomain" -o "$DOMAIN" = "(none)" ] && DOMAIN=$(grep "^search " /etc/resolv.conf | cut -d' ' -f2)
DEBUG=${DEBUG:-no}