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" 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" Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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