From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17548 invoked from network); 31 Aug 1999 06:54:03 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 Aug 1999 06:54:03 -0000 Received: (qmail 6037 invoked by alias); 31 Aug 1999 03:56:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7561 Received: (qmail 6022 invoked from network); 31 Aug 1999 03:56:45 -0000 To: zsh-workers@sunsite.auc.dk Cc: pws@ibmth.df.unipi.it Subject: PATCH: 3.1.6-pws-2: Config/installfns.sh MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 31 Aug 1999 12:54:32 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) 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