zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh <zsh-users@zsh.org>
Subject: Re: Using script to find location of global rcs files.
Date: Sat, 26 Jan 2019 18:10:26 +0000	[thread overview]
Message-ID: <f13f8a7bce03b94b0a3cce202548b952c61241e8.camel@ntlworld.com> (raw)
In-Reply-To: <CA+rB6GJBTN_BzedW=CvpxFHXMMZyuQWTU04dEEZVNwJvrxG2wA@mail.gmail.com>

On Sat, 2019-01-26 at 06:55 -0600, Jim wrote:
> Hi everyone,
> 
> The manual states that the location of the global rcs files defaults to
> ¨/etc/¨, but on the distributions I´m using the default is ¨/etc/zsh/¨. I
> want
> to determine this location in a script, but so far I hav en´t found a ¨zsh¨
> option or variable to do this. I currently check the results of:
> 
>     strings ${whence zsh) | egrep -i ´/etc/.*z[spl].*[tvecn]´
> 
> Does anyone know a better way of determining the location of ¨etcdir¨?

No, I'm afraid I can't see a better way --- the value is baked into the
shell but without exposing the value at the shell language level, nor do
we install any zsh-config script that might tell you.  This is ancient
stuff from before configuration became something more than just a dark
art...

pws


  reply	other threads:[~2019-01-26 18:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-26 12:55 Jim
2019-01-26 18:10 ` Peter Stephenson [this message]
2019-01-26 18:38   ` dana
2019-01-27 13:11     ` Jim
2019-01-27 14:32       ` dana

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=f13f8a7bce03b94b0a3cce202548b952c61241e8.camel@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-users@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).