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 Subject: RE: .bashrc not working (and yes I've read the FAQ etc as you'll see) To: Cygwin AT cygwin DOT com Cc: "Steve Mayes" Message-ID: From: Arthur I Schwarz Date: Thu, 24 Feb 2005 17:16:50 -0800 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-SPAM: 0.00 Some thoughts which others have thought before me: 1. /etc/password should reference shell and home to use 2. /etc/profile is executed at 'login ...' a. Note comments on /etc/profile.d 3. $HOME/.bashrc, $HOME/.inputrc are executed (for bash) 4. If you use scripts and intend to import environment variables, export should be used a. and 'source .bashrc' within a script helps 5. If you use scripts and intend to import aliases then you need to supply a separate file for the system to execute (I just did this and don't remember the steps. 6. Info bash and read and read and ... helps 7. Don't forget '#! /bin/bash` or equivalent as first line. Bottom line, when things go wrong it really takes some digging. In my case I always (always) do something wrong. Note that /etc/profile contains information specific to locating $HOME. After login have you done 'echo $HOME'? art Steve wrote: >Forgive the defensive addendum but I've no wish to be either flamed or >ignored when I've tried available pathways to solving this. Must ... resist ... urge ... to .... flame ... }:-)> >Situation: > >.bashrc not working and yes my $home variable is correctly >defined but I >put a copy of .bashrc into / anyway just in case. >The --login and -i switches are used. >I even used the --rcfile switch and pointed it directly to my .bashrc >file at which point cygwin just bombs out. > >.bashrc file contains only the line > >Alias ls='ls -al --color=auto' > >I even made .bashrc executable using the command chmod +x >(just in case) >but this changed none of the behaviour. What am I missing. I'm pretty much missing a proper description of the problem. Whaddaya mean ".bashrc not working"? And what's "cygwin just bombs out" supposed to mean - is it some sort of new hacker language or technical term I didn't pick up on? What's your entry in /etc/passwd say? Regards, Jesper Vad Kristensen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/