delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/14/16:16:11

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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=iEGnk
MvYJopMLQ6icxb8PddmdgTwFEtcWtCXIy04p5ZUnwcUlnkxp5ZmhE8szoGMmrXGZ
119i2VX0+zkWIjDSrVa9p9qLlg3v/3OJ3VC1OTJ7bvAHaQbMCUlgPvseb9DBFlcE
gnXEwoRAvBy4gKAnDrQP6486emvYwFZlXI6mlQ=
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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=kNMp/T1bydv
1kcoA2AD94DP4+kU=; b=sQj2xrqpNf0V64NpYO3fTSoEI5mm1g5OhSYorHCRToK
MFEh2xCEOA0BPeuV3fd7TmPOriVXyRzaSCj1zFdWHxOW20syfZ6kfhuVUvG/Zmq0
tM0Kp4Pt63MZVlBwqb3Zt3OmDmhNGcju59zaV4DLDs7a46U/MPvOkmCi845qiLg0
=
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=-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
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 3nblP34zbdz7lbZ
From: Achim Gratz <Stromeko AT nexgo DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings
References: <20151014155256 DOT GN14466 AT dinwoodie DOT org> <876129s86w DOT fsf AT Rainer DOT invalid> <20151014171400 DOT GP14466 AT dinwoodie DOT org>
Date: Wed, 14 Oct 2015 22:15:51 +0200
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

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

- Raw text -


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