From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70393 invoked by alias); 14 Oct 2015 20:15:57 -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 70382 invoked by uid 89); 14 Oct 2015 20:15:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-10.arcor-online.net Received: from mail-in-10.arcor-online.net (HELO mail-in-10.arcor-online.net) (151.189.21.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 14 Oct 2015 20:15:55 +0000 Received: from mail-in-18-z2.arcor-online.net (mail-in-18-z2.arcor-online.net [151.189.8.35]) by mx.arcor.de (Postfix) with ESMTP id 3nblP35tBRz8S6m for ; Wed, 14 Oct 2015 22:15:51 +0200 (CEST) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-18-z2.arcor-online.net (Postfix) with ESMTP id C88CD34150B for ; Wed, 14 Oct 2015 22:15:51 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 3nblP34zbdz7lbZ Received: from Gertrud (p54B47B23.dip0.t-ipconnect.de [84.180.123.35]) (Authenticated sender: stromeko@arcor.de) by mail-in-06.arcor-online.net (Postfix) with ESMTPSA id 3nblP34zbdz7lbZ for ; Wed, 14 Oct 2015 22:15:51 +0200 (CEST) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings References: <20151014155256.GN14466@dinwoodie.org> <876129s86w.fsf@Rainer.invalid> <20151014171400.GP14466@dinwoodie.org> Date: Wed, 14 Oct 2015 20:15:00 -0000 In-Reply-To: <20151014171400.GP14466@dinwoodie.org> (Adam Dinwoodie's message of "Wed, 14 Oct 2015 18:14:00 +0100") Message-ID: <87h9ltqk94.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2015-10/txt/msg00173.txt.bz2 Adam Dinwoodie writes: > The only other option I can think of is to rename the .bash file to .sh > and to patch it to check $BASH_VERSION before running the Bash-specific > code. That seems fragile though -- it means putting Bashisms in a > script that may be run by non-Bash shells (even if it's gated by > checking $BASH_VERSION), and it means a patch of the upstream fzf Bash > script in a way that's essentially just duplicating code already in > /etc/profile. Sourcing that script would actually belong into /etc/bash.bashrc if I understand correctly what this is supposed to do. Unfortunaltely there is no infrastructure set up to do this yet in bash.bashrc and simply changing the file makes it non-upgradeable. OTOH what I see there on my Linux system is far too complicated for Cygwin, I'll have to think about this some more. > (The upstream solution to this is to add code to the user's ~/.bashrc to > source the relevant scripts, but I don't think that's feasible when > installing the scripts via setup-*.exe.) No, that should indeed be left to the user. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- 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