From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17547 invoked by alias); 6 Sep 2014 12:12:18 -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: 33113 Received: (qmail 29732 invoked from network); 6 Sep 2014 12:12:17 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,479,1406617200"; d="scan'208";a="598966515" Message-ID: <540AF773.5080407@linux.intel.com> Date: Sat, 06 Sep 2014 15:00:51 +0300 From: Tanu Kaskinen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: The default $fpath Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, I have a complaint about the default $fpath contents. Let's assume that I write a program, let's call it "Foo". I want to support Zsh completion for Foo, so I write a shell completion script. By default, if someone builds Foo from source, Foo should be installed under prefix /usr/local. Distributions will install Foo under prefix /usr. Regardless of whether Foo is installed under /usr or /usr/local, I want the Zsh completion to Just Work. I think it should not matter whether the Zsh completion is installed under /usr/share/zsh/site-functions or /usr/local/share/zsh/site-functions, the completion script should be picked up by Zsh either way. On some distributions this appears to work, but not all. At least Fedora's Zsh doesn't include /usr/local/share/zsh/site-functions in the default $fpath. This doesn't seem to be Fedora's fault. As far as I can see, Zsh upstream doesn't include /usr/local/share/zsh/site-functions in $fpath if the install prefix is /usr. Would a patch be accepted that adds /usr/local/share/zsh/site-functions to $fpath always, no matter what the install prefix is? -- Tanu