delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/25/15:32:29

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
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: alias: not found
Date: Thu, 25 Mar 2004 15:32:06 -0500
Message-ID: <728813C3358BF04CB3A3DA2341D44A719D757E@e2k11.na.baesystems.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Chaikin, Yaakov Y (US SSA)" <yaakov DOT y DOT chaikin AT baesystems DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 25 Mar 2004 20:32:06.0452 (UTC) FILETIME=[3D3E5F40:01C412A8]
X-IsSubscribed: yes
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i2PKWNtk019157

Igor,

Thanks. This resolved the problem. I was forgetting the space between
the dots of  . .bashrc.

I was starting cygwin using a shortcut.

Thanks.


> -----Original Message-----
> From: Igor Pechtchanski
> Sent: Thursday, March 25, 2004 3:13 PM
> To: Chaikin, Yaakov Y (US SSA)
> Cc: cygwin AT cygwin DOT com
> Subject: RE: alias: not found
> 
> Yaakov,
> 
> Please don't feed the spam harvesters by quoting raw e-mail addresses
in
> your replies.  More below.
> 
> On Thu, 25 Mar 2004, Chaikin, Yaakov Y (US SSA) wrote:
> 
> > > -----Original Message-----
> > > From: Igor Pechtchanski [mailto:pechtcha<at>cs<dot>nyu<dot>edu]
> > > Sent: Thursday, March 25, 2004 3:00 PM
> > > To: Chaikin, Yaakov Y (US SSA)
> > > Cc: cygwin<at>cygwin<dot>com
> > > Subject: Re: alias: not found
> > >
> > > On Thu, 25 Mar 2004, Chaikin, Yaakov Y (US SSA) wrote:
> > >
> > > > Hi,
> > > >
> > > > I am using WinXP Pro. Created .profile file with the following
line:
> > > > .bashrc
> > >
> > > It should be ". .bashrc", actually...
> >
> > I tried that. When I start up cygwin it gives me this error:
> > Bash: ..bashrc: command not found
> 
> Note the space between the dots...  In a file destined for bash only,
you
> can use the "source" builtin instead of the "." command, i.e., use
"source
> .bashrc".
> 
> > > > Then, I created .bashrc file with the following line:
> > > > alias cl clear
> > > >
> > > > Restarted cygwin and got the following error message:
> > > > alias: not found
> > >
> > > Which shell are you running?  Sounds like "sh".
> >
> > I was under the impression that I am using "bash" shell. I am not
> > familiar with this.
> 
> How are you invoking the shell?  Via rxvt?  Or via a Cygwin shortcut?
If
> the former, rxvt will execute "sh" by default.  If the latter, what is
the
> contents of your /cygwin.bat?
> 
> > > It's usually not a good idea to put bash-specific commands in
> > > .profile, as sh also uses it.  You can use .bash_profile for bash
> > > instead.
> >
> > I am not sure I am following this. Could you spell it out for me?
What
> > do I put into what file?
> >
> > Thanks,
> > Yaakov.
> 
> Bash, when invoked as a login shell, will execute ~/.bash_profile, if
> present, instead of ~/.profile.  I usually symlink ~/.bash_profile to
> ~/.bashrc...  Alternatively, make ~/.bash_profile a one-line script
with
> ". .bashrc" or "source .bashrc".
> 
> OTOH, ~/.profile is used by both bash and sh, so you should only put
> sh-compatible commands into it.
> 	Igor
> --
> 				http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
>     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "I have since come to realize that being between your mentor and his
route
> to the bathroom is a major career booster."  -- Patrick Naughton

--
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/


- Raw text -


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