delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/01/15:03:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: Tue, 1 Apr 2003 15:02:30 -0500
From: Peter Davis <pd AT world DOT std DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Aliases no longer defined?
Message-Id: <20030401150230.00007668.pd@world.std.com>
In-Reply-To: <NCEBJJFMCAOKNNABBFIMKECFDGAA.john.r.morrison@ntlworld.com>
References: <20030401182945 DOT GA4676 AT bitstream DOT com>
<NCEBJJFMCAOKNNABBFIMKECFDGAA DOT john DOT r DOT morrison AT ntlworld DOT com>
Mime-Version: 1.0

On Tue, 1 Apr 2003 20:42:34 +0100
"John Morrison" <john DOT r DOT morrison AT ntlworld DOT com> wrote:

> > From: Peter Davis
> > 
> > What should it be?  I explicitly set HOME to be C:\home in Windows,
> > for the benefit of emacs, etc.  I've done this for years, so it
> > seems to be unrelated to the current problem.  In fact, I just
> > checked, and the results of these commands are the same on my old
> > Win2000 machine, where .bashrc worked.
> 
> Hi,
> 
> You don't actually need to explicitly set HOME anymore, cygwin's
> come on over the years ;)

I wasn't doing it for cygwin.  I was doing it for gnu emacs (the Win32
native version).

> Somebody (pardon - I've deleted the mail) correctly said, you need
> to add a . ~/.bashrc (or use source rather than .) to your
> ~/.bash_profile
> 
> Cygwin doesn't run ~/.bashrc by default - as the bash manual
> recommends. It's on the 'todo' list to create a skeleton
> ~/.bash_profile, but I've not got round to making it work correctly,
> sorry.
> 
> Oh, and alias in ~/.bash_profile doesn't (I believe) work, don't know
> why.

To recap, this same exact .bashrc file used to work, on my previous
Windows(2000) machine. Now, on WinXP, it doesn't.  In fact, even if I
explicitly type "source~/.bashrc" at the shell prompt, it doesn't work. 
I don't get errors, but the aliases are not defined. That is the problem
I've been seeing. I'd like to have some aliases for common commands, and
I'd like to be able to set some environment variables, like adding some
dirctories to my path. (These don't need to be in the Windows-wide
path... just in Cygwin.) Also, copying .bashrc to .bash_profile and then
starting a new bash shell doesn't work.

If anyone can tell me how to define these aliases and environment
variables, I'll be*very* grateful.


> You can still set your HOME, there's nothing (that I know of!) wrong
> with doing so.


Igor suggested that my $HOME is set wrong, although everything worked on
my old machine with this same setting.  What should this be, and how
should it get set?

Thanks very much!

-pd


-- 
--------
                             Peter Davis
               Funny stuff at http://www.pfdstudio.com
                 The artwork formerly shown as prints
    List of resources for children's writers and illustrators at:
                  http://www.pfdstudio.com/cwrl.html

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019