delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/14/12:32:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=s7rWl4CjJrvvOxu0H2SO/Zhna1D9devlGAKeDztcHBxMXR29R1ReY
uMX1LGh8dmEBq61BWMi2AMhpev5lT9rUun125vVC1he1djPq9V96SedUXcS6RPQb
sEIBfYQH4bSDdtlUj5AvrnaVwJGQsespIhJBNxXV3P5CdmM9/PNb6c=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=K9EMjnqoUQShby+xcxjAguBJZD0=; b=pTjP/Xw2VxtOACaEDx999CHqWzOp
L3E4cZjvSrvZd8GTgHkJoE6MjC7OiEq6iSnFTn5qVJ73AXxiAaOaPaksDly8ihVn
XU+ry8tb0PSERnMroyVjhhKLzVI+RhOSItjhKbdcLohaimMzOUQBpAUkFOwnmIiy
/A7N5LMW/93DiTo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f171.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=PLhNXSlMPoj5PsHtadlg0dNU7crCxplhbVhqeh49GbE=; b=K8W9rU4ZozvPoY/tJWenuxIeAWuAemgMBvz57WzosHBYOvVs+Avf0lLewGtLPj1Asm E1/EZGLm4RrN3QrIX6LTRh7agGMga/jyXbXON7/P6L5ux8syQUArTO4kMBZGBekJDUsk f6nKvsQtQZrsD8MBA7V+znoL3JKbxXei3MU+VBhIxI+L/JG7O4YHSCpMPVAufrC5MUYt rWZnlhBuQIDc5JpChYVi9t7xw1ON582hfHgfEW0us1cjLMqE5FwcMhilTfBNYOjdmbYd vXFtLcREG7e6XWjmiB7LQXbOCOk6J8W52GtZVj6bvGlhzm4NSM2wO3JIcu/P1fDhNLAe onbg==
X-Gm-Message-State: ALoCoQkqFCWDpYS/XX43e0W6TTG44NDOxovF/guIjGy/EsZOXNqCgFoKkS8jJmXpgGNqxir2199j
X-Received: by 10.194.63.5 with SMTP id c5mr4992685wjs.127.1444840335547; Wed, 14 Oct 2015 09:32:15 -0700 (PDT)
Date: Wed, 14 Oct 2015 17:32:09 +0100
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings
Message-ID: <20151014163209.GO14466@dinwoodie.org>
Reply-To: cygwin AT cygwin DOT com
References: <20151014155256 DOT GN14466 AT dinwoodie DOT org> <1444839613 DOT 11904 DOT 6 DOT camel AT cygwin DOT com>
MIME-Version: 1.0
In-Reply-To: <1444839613.11904.6.camel@cygwin.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes

On Wed, Oct 14, 2015 at 11:20:13AM -0500, Yaakov Selkowitz wrote:
> On Wed, 2015-10-14 at 16:52 +0100, Adam Dinwoodie wrote:
> > The /etc/defaults/etc/profile file in base-files has a section at the
> > end to import scripts in /etc/profile.d, but this currently only works
> > with zsh.
> 
> Bash is covered by the "profile_d sh" command therein.

The `profile_d sh` command is run for all shells that execute that file;
looking at the code that appears to be at least Bash, Korn, Z and Posh.
I'm looking for `profile_d bash` and the like -- fzf's implementation
for Bash isn't going to be appropriate to run for other shells.

> > Can this section be expanded to make calls as appropriate for other
> > shells?  I'm particularly interested in Fish and Bash, although I don't
> > see any reason to limit the change to those shells.
> 
> Note that /etc/profile is only for Bourne-compatible shells; those that
> are not must use their own mechanism to accomplish the same thing (e.g.
> tcsh in /etc/csh.cshrc).  As fish has a different syntax, it may fall
> into this category as well.

Okay, I'd assumed Fish would use /etc/profile, but if not I'll look at
finding some alternative for that.

Adam

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019