Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 3.1.6-pws-2: Config/installfns.sh



I found that Functions/{Makefile,Makefile.in,README.zftp} are
installed to prefix/share/zsh/functions.

This is caused by pattern matching problem in installfns.sh.
When $sdir is ".", sed script is "s%./%%g". And now "echo $sdir/$file"
generates "./X/*". Therefore, the substituted result by sed is "*" and
it is expanded in Functions subdirectory.

This patch avoids the problem by adding a space as left anchor for
each words. Although it should also quote $sdir, it does not. Because
this works well with current FUNCTIONS_INSTALL.

Index: Config/installfns.sh
===================================================================
RCS file: /projects/zsh/zsh/Config/installfns.sh,v
retrieving revision 1.1.1.4
diff -u -F^( -r1.1.1.4 installfns.sh
--- installfns.sh	1999/08/28 05:10:54	1.1.1.4
+++ installfns.sh	1999/08/30 20:42:38
@@ -13,7 +13,7 @@
   if test -f "$sdir/$file"; then
     install="$install $file"
   else
-    install="$install `echo $sdir/$file | sed -e \"s%$sdir/%%g\"`"
+    install="$install `echo '' $sdir/$file | sed -e \"s% $sdir/%%g\"`"
   fi
 done
 
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author