Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Mon, 12 Apr 2004 14:50:36 -0400 From: Ronald Landheer-Cieslak To: cygwin AT cygwin DOT com Subject: Re: .bashrc is ignored Message-ID: <20040412185036.GB5274@landheer.com> Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Reply-To: cygwin AT cygwin DOT com --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hoss wrote: > I'm a newbie to cygwin and I'm trying to setup .bashrc to start when I la= unch > a cygwin terminal (using rxvt in fact). my .bashrc is ignored which I th= ink > is because the %HOME% environment variable is not set *before* I run > bash/rxvt. > When I do set it, it simply causes bash to create new directories. Basic= ally > I'm not sure whether %HOME% (a windows environment variable) should be se= t in > Windows or POSIX format, and how to quote the string or escape spaces in > either case - I'm trying to make sure my home directory is the same as my > windows profile directory (done this) and that bash recognises this as the > location to find .bashrc. Hello Hoss, Could you please provide a bit more information, such as: * the contents of your cygwin.bat file (or rather: how you invoke rxvt and = make it invoke Bash * the result of typing ``echo $HOME'' (without the quotes) on the Bash comm= and- line. * the output of cygcheck as described at http://cygwin.com/problems.html=20 (attached, not in-line) I.e., there's not enough information in your mail to know how to help you: = it=20 could be that your HOME variable is not set correctly, though your mention = of the fact that your home directory actually is the directory you want it to = be does not support that; it could also be that you don't invoke Bash correctl= y for it to read your ~/.bashrc file - i.e. ~/.bashrc is only read if the shell i= s not a login shell (i.e. the option ``--login'' is not used) and it is interacti= ve=20 (and the option ``--no-rc'' is not used either). If the shell you're using is a login shell, the file Bash looks for is=20 ~/.profile, which *usually* (but by no means always) sources the ~/.bashrc = file, but it is up to the user to make it so. More details about how Bash behaves when it starts up and which files it re= ads can be found in the INVOCATION section in Bash' manpage. rlc --dc+cDN39EJAMEtIO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAeuT7U1nODpimgXsRAixgAKCvvFw841jJY6aSE8OhZJyo0xgkqwCgn/XH Ur1c7SXD/I+J0aK8T0r0a6E= =fJro -----END PGP SIGNATURE----- --dc+cDN39EJAMEtIO--