From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17451 invoked by alias); 6 Sep 2014 23:05:04 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33119 Received: (qmail 29571 invoked from network); 6 Sep 2014 23:04:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [86.6.157.246] X-Spam: 0 X-Authority: v=2.1 cv=Ku/D2AmN c=1 sm=1 tr=0 a=BvYiZ/UW0Fmn8Wufq9dPrg==:117 a=BvYiZ/UW0Fmn8Wufq9dPrg==:17 a=NLZqzBF-AAAA:8 a=AW-DWZTfyeoA:10 a=uObrxnre4hsA:10 a=IkcTkHD0fZMA:10 a=02rWKl3eAAAA:8 a=uW0Qzc88gE20Obh3_aEA:9 a=QEXdDO2ut3YA:10 a=iVFYgQKhOj0A:10 Date: Sun, 7 Sep 2014 00:04:54 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: The default $fpath Message-ID: <20140907000454.74cda356@pws-pc.ntlworld.com> In-Reply-To: <8761h05zvt.fsf@ft.bewatermyfriend.org> References: <540AF773.5080407@linux.intel.com> <20140906194513.5b19931c@pws-pc.ntlworld.com> <8761h05zvt.fsf@ft.bewatermyfriend.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 06 Sep 2014 21:10:14 +0200 Frank Terbeck wrote: > Peter Stephenson wrote: > > It is a bit frustrating that there's nowhere you can put a function and > > guarantee that a user will find it without altering the path. Granted > > you *can* put it somewhere else where it'll be found, that doesn't mean > > you should be forced to, if there are no gotchas to do with having a > > standard location. >=20 > Do you mean making the default =E2=80=98--enable-site-fndir=E2=80=99 inde= pendent of > installation prefix to =E2=80=9C/usr/local/share/zsh/site-functions=E2=80= =9D? I think that would eliminate any existing site-functions, e.g. /usr/share/zsh/site-functions when the prefix is /usr, from the path. That's probably a bad idea as (i) it changes the behaviour of an updated installation in the same location (ii) some automated site installation script might be using it. I think it needs to be additional. What I'm less clear about is where it would go in the path. If we made the change, we might, however, want to document that from now on /usr/local/share/zsh/site-functions is recommended if the functions are to be available to all instances of zsh. pws