This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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>
- To: cygwin at cygwin dot com
- Date: Tue, 28 Feb 2012 11:23:07 +0100
- Subject: base-files-4.1-1: Setting CYG_SYS_BASHRC in bash.bashrc has no effect
- Reply-to: "Christian Franke" <Christian dot Franke at t-online dot de>
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