delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Tue, 28 Feb 2012 11:23:07 +0100 |
Reply-To: | "Christian Franke" <Christian DOT Franke AT t-online DOT de> |
To: | cygwin AT cygwin DOT com |
Subject: | base-files-4.1-1: Setting CYG_SYS_BASHRC in bash.bashrc has no effect |
From: | "Christian Franke" <Christian DOT Franke AT t-online DOT de> |
Message-ID: | <1S2KD5-0jC4Mi0@fwd17.aul.t-online.de> |
X-IsSubscribed: | yes |
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 |
Setting CYG_SYS_BASHRC in bash.bashrc has no effect because it is run a (...subshell...) environment: Fix: --- defaults/etc/bash.bashrc 2012-02-27 22:03:33.001000000 +0100 +++ bash.bashrc 2012-02-28 11:00:30.657407200 +0100 @@ -20,3 +20,3 @@ # Check that we haven't already been sourced. -([[ -z ${CYG_SYS_BASHRC} ]] && CYG_SYS_BASHRC="1") || return +{ [[ -z ${CYG_SYS_BASHRC} ]] && CYG_SYS_BASHRC="1"; } || return or without any parentheses: +[[ -z ${CYG_SYS_BASHRC} ]] && CYG_SYS_BASHRC="1" || return Older issue since base-files-4.0-4. AFAICS it does not break anything. Christian -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |