zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 3.1.6-pws-2: Config/installfns.sh
@ 1999-08-31  3:54 Tanaka Akira
  1999-08-31  7:34 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Tanaka Akira @ 1999-08-31  3:54 UTC (permalink / raw)
  To: zsh-workers; +Cc: pws

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-08-31  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-31  3:54 PATCH: 3.1.6-pws-2: Config/installfns.sh Tanaka Akira
1999-08-31  7:34 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).