From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64859 invoked by alias); 14 Oct 2015 16:20:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 64847 invoked by uid 89); 14 Oct 2015 16:20:08 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 14 Oct 2015 16:20:07 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 313758E70E for ; Wed, 14 Oct 2015 16:20:06 +0000 (UTC) Received: from YAAKOV04.redhat.com (ovpn-116-30.rdu2.redhat.com [10.10.116.30]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9EGK4jF010653 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 14 Oct 2015 12:20:05 -0400 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 To: cygwin@cygwin.com Date: Wed, 14 Oct 2015 16:20:00 -0000 In-Reply-To: <20151014155256.GN14466@dinwoodie.org> References: <20151014155256.GN14466@dinwoodie.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00163.txt.bz2 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