From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Cc: pws@ibmth.df.unipi.it
Subject: PATCH: 3.1.6-pws-2: Config/installfns.sh
Date: 31 Aug 1999 12:54:32 +0900 [thread overview]
Message-ID: <rsq3dx0mwp3.fsf@crane.jaist.ac.jp> (raw)
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
next reply other threads:[~1999-08-31 6:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-31 3:54 Tanaka Akira [this message]
1999-08-31 7:34 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rsq3dx0mwp3.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--cc=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).