base-files-4.1-1: Setting CYG_SYS_BASHRC in bash.bashrc has no effect
Christian Franke
Christian.Franke@t-online.de
Tue Feb 28 11:09:00 GMT 2012
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
More information about the Cygwin
mailing list