Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com X-Authentication-Warning: abomination.cygnus.com: mdejong owned process doing -bs Date: Wed, 29 Mar 2000 10:45:26 -0800 (PST) From: Mo DeJong To: "Parker, Ron" cc: "'cygwin-developers AT sourceware DOT cygnus DOT com'" Subject: RE: Mo Dejong's install problems In-Reply-To: <200003291617.IAA08178@cygnus.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > Nope. Windows is really hosed in that respect. I have to wonder why > > a .bat file is even getting used at all. Why not create a .bashrc > > file in the root of the install path and then put the setting of > > the PATH in there? I tried this on my box at home and it seemed > > to work like a charm. My cygwin.bat file looked like this: > > > > echo off > > cd C:/Cygwin/usr/bin > > bash > > > > I then put the variable stuff in C:/Cygwin/.bashrc and it > > seemed to work. > > > > I am not a bash expert. I agree this would be better than having settings > in the batch file itself. I know local settings go in $HOME/.bashrc and > when bash is called with --login global settings are read from /etc/profile, > but where do the global settings go when bash is called without --login? Well, I found that C:/Cygwin/.bashrc was working for me, but this was only by trial and error (I need to apply for a patent on that). Could someone who knows more about cygwin internals comment on why cygwin can not use something like a .bashrc file for global settings instead of a .bat file? Is there some reason the PATH would need to be set while still in windows? Does cygwin fail to correctly "export" the PATH env var or something? These may sound like stupid questions, but I think this is in fact the most important issue cygwin will face in the next release. Previous version of cygwin were just too hard to install. Users need to be able to click a button and have the basics work "out of the box". Mo Dejong Red Hat Inc.