aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-30 19:14:17 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-30 19:14:17 +1000
commit25365dbc54361422b5a8a1d56f30ab48bdb34381 (patch)
tree5e328fb32791c63bb600a3ba6817173870b55d3d /share
parent6a5f11879b6c785404dde8078a1a58cbd5e7c03b (diff)
Minor change to the strings to a printf comman, since it seems to work differently under different platforms
darcs-hash:20060530091417-ac50b-4eead9f39433b54ab66dea1c336b533689d85c46.gz
Diffstat (limited to 'share')
-rw-r--r--share/fish.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/fish.in b/share/fish.in
index 816771b3..1028b32f 100644
--- a/share/fish.in
+++ b/share/fish.in
@@ -40,10 +40,11 @@ if test "$USER" = root
set path_list $path_list /sbin /usr/sbin /usr/local/sbin
end
-# Make a regular expressin that matches any component in the PATH. A
+# Make a regular expression that matches any component in the PATH. A
# trailing slash is ok. The sed call is to remove the last '\|'.
-set -l path_regexp \\\((printf "^%s\\(\\|/\\)\$\\|" $PATH | sed -e "s/..\$//")\\\)
+
+set -l path_regexp \\\((printf "%s" \^$PATH'\(\|/\)$\|' | sed -e "s/..\$//")\\\)
for i in (printf "%s\n" $path_list|grep -v $path_regexp)
if test -d $i