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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sun, 8 Aug 2004 13:58:52 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: erik AT weibust DOT net cc: cygwin AT cygwin DOT com Subject: Re: question about cygwin.bat vs .bashrc In-Reply-To: <20040807182035.3458.qmail@web11701.mail.yahoo.com> Message-ID: References: <20040807182035 DOT 3458 DOT qmail AT web11701 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Sat, 7 Aug 2004, Erik Weibust wrote: > I was reading in the Cygwin users guide. Specifically in section 2.2. > > It mentions some env vars that can be set in the cygwin.bat: CYGWIN, > PATH, HOME, TERM, and LD_LIBRARY_PATH. > > First, none were defined in my cygwin.bat. Is that a problem? There > weren't any env vars defined. All of the above variables are optional, and will get default values if not defined. The default for CYGWIN is empty, PATH will be the Windows PATH (also adjusted in /etc/profile), the rules for HOME are in the mailing list archives (most often it comes from /etc/passwd if valid), TERM is set to "cygwin" for the CMD.EXE window, and LD_LIBRARY_PATH is empty and I don't believe it's even used in Cygwin (Windows uses PATH to search for DLLs). > Second question, Is there any reason to define the vars in cygwin.bat > over my .bashrc? Some variables (e.g., CYGWIN) need to be set before a Cygwin process loads. Besides, there are some rc scripts that execute before ~/.bashrc (in particular, /etc/profile for login shells). > I don't like the behavior of the windows command window so I use putty > to ssh into my machine. Assuming you run Cygwin sshd, this will inherit the environment variables you set for the ssh daemon using cygrunsrv. Another alternative is using "rxvt -display :0 -T Cygwin -e bash -li", which will use the native Windows GUI with no need for sshd. 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! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/