delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/31/20:28:39

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: Mon, 31 Mar 2003 20:25:51 -0500
From: Peter Davis <pd AT world DOT std DOT com>
To: cygwin AT cygwin DOT com
Cc: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Subject: Re: Aliases no longer defined?
Message-Id: <20030331202551.00004204.pd@world.std.com>
In-Reply-To: <Pine.GSO.4.44.0303311821370.21921-100000@slinky.cs.nyu.edu>
References: <20030331175916 DOT 000005c8 DOT pd AT world DOT std DOT com>
<Pine DOT GSO DOT 4 DOT 44 DOT 0303311821370 DOT 21921-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0

On Mon, 31 Mar 2003 18:24:50 -0500 (EST)
Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote:

> On Mon, 31 Mar 2003, Peter Davis wrote:
> 
> > I recently switched from Windows NT4 and Windows 2000 to Windows XP.  I
> > installed cygwin freshly on both systems.  Now I'm noticing that on both
> > systems, .bashrc seems to be completely ignored.  I haven't changed this
> > file at all, but suddenly the aliases I define and export are not
> > defined when I try to type them at the shell prompt.
> 
> > If I do
> 
> >         source ~/.bashrc
> 
> > it works without error, but the aliases are *still* not defined.  I
> > noticed by running 'cygcheck -s' that the new systems seem to have DLL
> > build 1.3.22 (3/18/2003), while the older ones were running build 1.3.20
> > (2/18/2003).  However, nothing else has changed.  This used to work, but
> > now doesn't.
> 
> > Any clues?
> 
> Two questions: is bash invoked with a --login option, 

Checking cygwin.bat, it appears that it is.  I thought this file was
created with some default settings.  Has that changed recently?

> and is ~/.bashrc
> readable by the user you invoke bash as?

Seems to be.  I can 'less' it.

>  If bash is invoked with --login,
> the file executed is .bash_profile, not .bashrc.  I solve this by making
> .bash_profile a symlink to .bashrc.

Ok.  Makes sense.  But shouldn't explicitly source'ing the .bashrc
file get this to work?


> P.S. On an unrelated note, the use of shell functions is recommended over
> the use of aliases.

Thanks.  I basically only run bash long enough to get mutt started.  I
should learn more about it.  I'm more familiar with tcsh, but I
haven't figured out why that takes forever to start on my system.
Something in my legacy .tchsrc file, no doubt.

Thanks!

-pd


-- 
--------
                             Peter Davis
               Funny stuff at http://www.pfdstudio.com
    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