From 22f3dcfd354cab2e4d8c579a54eb3f7aaa5d9b66 Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 18 May 2006 22:59:09 +1000 Subject: [PATCH] Fix bug that causes fish to elongate the PATH whith directories which are already there darcs-hash:20060518125909-ac50b-9c23915bb6f51f9105e04ad71b102b386b5d43a9.gz --- share/fish.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/fish.in b/share/fish.in index 09d2961c8..1e33f1f5c 100644 --- a/share/fish.in +++ b/share/fish.in @@ -18,7 +18,8 @@ if test "$USER" = root end for i in $path_list - if not expr "$PATH" : "$i/*" >/dev/null + set -l regex "^$i\(\|/*\)\$" + if not printf "%s\n" $PATH|grep $regex >/dev/null if test -d $i set PATH $PATH $i end