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

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:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=NM3juD9vvkiqoC5boueOLtcVc3nVB0A3YFaHLy0P6R7
dr/gdUGgS2iL5zm0WYQHNqhjBBqnoC5T38SJn6uBULGCciJ+csFIJdRJzPkZQY/Z
i/NV1Yj7QJPIoAUCIgwWwKZ4wubx5Ow0NGxocdba1kKhLNhnsoeiAzHWYOks3sgw
=
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:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=QLeolSGzjYUE9LBw0itYoEiuNrQ=; b=UhHJKSuJ3HbmAZg+Z
32IiN58hUXGbTnPjQHja1LMDNQuA32UY2MwB4bDmEhwl3fxuV0l0uoivwAn8kQT3
XP12RYph1LSDFAt3pncJom9tiimLK/XFbgzCwD39GnmQhtk76wDCMshOSQ3j7p9o
7NCnHEhjoV2aehcSY74e8y52VY=
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.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1444839613.11904.6.camel@cygwin.com>
Subject: Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Date: Wed, 14 Oct 2015 11:20:13 -0500
In-Reply-To: <20151014155256.GN14466@dinwoodie.org>
References: <20151014155256 DOT GN14466 AT dinwoodie DOT org>
Mime-Version: 1.0
X-IsSubscribed: yes

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.

> 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.

--
Yaakov




--
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