From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 9def61d8 for ; Sat, 26 Jan 2019 18:10:45 +0000 (UTC) Received: (qmail 20515 invoked by alias); 26 Jan 2019 18:10:31 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23848 Received: (qmail 10349 invoked by uid 1010); 26 Jan 2019 18:10:31 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-11.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(80.0.253.75):SA:0(-2.0/5.0):. Processed in 0.78609 secs); 26 Jan 2019 18:10:31 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=KJXu82No c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=IkcTkHD0fZMA:10 a=ar-51dWguqSC72STNEsA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1548526226; bh=nfhHlkpr1X2dSxX+rHwJcBiqiOJ+R4WkmuGD/xH2PXw=; h=Subject:From:To:Date:In-Reply-To:References; b=udSNwJDgzw7uxLDc7N/3Ehj4bmjnT8A1Yjg8r/db+eF4QUbehUVmqvyNnhkPyKXwE hK40Zwy2z8jeXE8lZKb8jB99DD4ddSmYcL40NSJgNfn6sj85AKsvsCkSshlBda5KRB PeykoTsDVYhUR5jkztcuTvUafo0GitGwcDz1uH9vPuxSAZBvizzTEnZASxO56Mc0yV jpf5PrxSOR+Va/j4YZdAUS3/CuzCQAkFHXC8PFeuau00Vb3WsylrEQ1ABvpqasOG6P XDrMqDDPhWERgpryTtI+Xol3b0f3krP7M5PnGJXXwB4JNn73wn332x+ZGZsUByS9+1 iL9pweF/76qaQ== Message-ID: Subject: Re: Using script to find location of global rcs files. From: Peter Stephenson To: zsh Date: Sat, 26 Jan 2019 18:10:26 +0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfPAVXZXvPQLWMWQqYYI0DU+GwNmEpH4nxzSRT4hEjLsoh6Gf5ywxITuKB1exxZ3M2DeyI0j4NAoV67xawd7X8XMIJsV3f8YmNrsCh62Gyo9Buu41nawZ rXMPA0GyQg2FeAY2BiacM/ZaJ4KuM+eLq0/tTEThXrxfEgnKOw7Ujy2F 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