From: tfheen Date: Fri, 17 Sep 2004 11:34:09 +0000 (+0000) Subject: remove empty path elements X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b18e53abfcb6d7d0453597298838433637cf504f;p=dotfiles remove empty path elements git-svn-id: file:///svn/tfheen/trunk/dotfiles@656 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index e9a074d..697b115 100644 --- a/environment +++ b/environment @@ -70,7 +70,7 @@ is_debian () { } removepathelem () { - PATH=$(echo "$PATH" | sed -e "s,:*$1:,:,g") + PATH=$(echo "$PATH" | sed -e "s,:*$1:,:,g" -e "s,::,:,g") } setpathifdir () {