This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

base-files-4.1-1: Setting CYG_SYS_BASHRC in bash.bashrc has no effect


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]