zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: "Zsh Hackers' List"  <zsh-workers@zsh.org>
Subject: Re: The default $fpath
Date: Sun, 7 Sep 2014 21:40:05 +0100	[thread overview]
Message-ID: <20140907214005.3190037b@pws-pc.ntlworld.com> (raw)
In-Reply-To: <1410119582.2513.51.camel@tkkaskin-mobl3.ger.corp.intel.com.tanuk.dy.fi>

On Sun, 07 Sep 2014 22:53:02 +0300
Tanu Kaskinen <tanu.kaskinen@linux.intel.com> wrote:
> > I don't have a /usr/local on my system, I use /opt instead.  Will it
> > be possible to override the root?
> 
> I think it's probably a good idea to make the
> non-install-prefix-dependent directory configurable.

No, it won't be configurable at compile time.

You can already set fpath the way you want in an initialisation file.
The user can override it any way they like, so there's nothing you can
do to force them to use a particular path anyway.  So it's already
infinitely configurable by means of shell code, which is much more
flexible than configuration for compilation; if you're doing that the
builtin path becomes irrelevant.  As the shell doesn't use the directory
itself it doesn't really care at the point of installation, so there's
no gain in compiling in something you can change at run time.

The proposal is simply to provide a directory where there's some
reasonable chance it will be found by all installations of the shell on
the same system regardless of configuration.  If you don't care about
that particular directory because you use others, if you want to set up
your own system, and in particular if you have your own custom setup
files so the shell paths are how you like them, then this doesn't
interest you one way or the other.

In short, this is for people who *don't* want to configure the system
themselves; if everyone did, the problem wouldn't have arisen.  There
are already plenty of ways of doing it for those who do.  It is a
command shell, after all.   If this builtin default becomes configurable
to use different directories the whole advantage is lost; it's far better
to use common run-time code to ensure a non-default directory.

I seem to be labouring explaining this point...

I'd really like to know if there are any problems caused by *this*
proposal, adding /usr/local/share/zsh/site-functions to the compiled-in
path.

pws


  reply	other threads:[~2014-09-07 20:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06 12:00 Tanu Kaskinen
2014-09-06 16:06 ` Frank Terbeck
2014-09-06 18:45 ` Peter Stephenson
2014-09-06 19:10   ` Frank Terbeck
2014-09-06 23:04     ` Peter Stephenson
2014-09-07  3:44       ` Bart Schaefer
2014-09-07 18:31         ` Peter Stephenson
2014-09-07 19:37           ` Vin Shelton
2014-09-07 19:53             ` Tanu Kaskinen
2014-09-07 20:40               ` Peter Stephenson [this message]
2014-09-07 21:01                 ` Bart Schaefer
2014-09-08 10:23                   ` Peter Stephenson
2014-09-08 11:16                     ` Frank Terbeck
2014-09-20 19:04                       ` Peter Stephenson
2014-09-20 19:36                         ` Peter Stephenson
2014-09-20 20:00                           ` Peter Stephenson

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=20140907214005.3190037b@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /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).