From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22182 invoked by alias); 21 Aug 2002 17:29:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22175 invoked from network); 21 Aug 2002 17:29:46 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 21 Aug 2002 17:29:46 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17hZHT-0003GK-00 for ; Wed, 21 Aug 2002 19:28:31 +0200 To: cygwin@cygwin.com X-Injected-Via-Gmane: http://gmane.org/ Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17hZHS-0003G4-00 for ; Wed, 21 Aug 2002 19:28:30 +0200 Path: not-for-mail From: Soren A Newsgroups: gmane.os.cygwin Subject: Re: cygwin.bat suggestions Date: Wed, 21 Aug 2002 12:39:00 -0000 Organization: Occasionally Sporadically Message-ID: References: <20020710134906.GA8942@butch.jgcomp.com> NNTP-Posting-Host: ny-kenton2a-572.buf.adelphia.net X-Trace: main.gmane.org 1029950909 12526 24.51.94.60 (21 Aug 2002 17:28:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2002 17:28:29 +0000 (UTC) User-Agent: Xnews/L5 X-Archive: encrypt X-SW-Source: 2002-08/txt/msg01244.txt.bz2 Jon LaBadie wrote around 10 Jul 2002 news:20020710134906.GA8942@butch.jgcomp.com about %s: > On Wed, Jul 10, 2002 at 12:06:09PM +0100, David Starks-Browning wrote: >> On Tuesday 9 Jul 02, Dantin writes: >> > How do I use rxvt in conjuction with the cygwin do I need a >> > switch for >> > the batch file? If so what would that switch be? Or do I need to >> > modify the batch file itself? >> >> If you search the email archives you should find numerous examples of >> how people invoke rxvt. I use a shortcut as follows: >> >> C:\cygwin\bin\rxvt.exe -e bash --login > > I'm looking for sample cygwin.bat files. > I tried a search of the archives, what a mistake, information > overload. But after scanning several hundred messages, no samples. Yeah, I know. More `General Meanness' at work ;-) {snip} > Of course, that is shell programming, not windows batch file > programming. I'm good at the former, not the latter :( > > Any suggestion for picking up the shell preference of the user > invoking the cygwin.bat file? Not specifically. I only use bash at present. I am just going to make my Cygwin.bat available for people to look at for the general odd chance they might see something that helps them. It will be at this url for the time being (I am not promising past a time frame of the next several weeks, that is; I reserve the right to reorganize my site): http://home.att.net/~perlspinr/build_platforms/cygwin/cygwin_bat.html Right now what's there is completely bare of expansive explanation; it's just code. My .bat file for Cygwin does some very unusual things because I am using Win98, not NT, and because I have (in the past) been a multi-booter between Win98 and NT and wanted the same setup .bat file to serve both. I will mention one thing concerning user preferences and home dirs: you've been told to have Cygwin use the home dirs under %USERPROFILE%\ and that's fine, it's a natural idea; under NT-like Windozen the shell automatically contains, by default, an env var that points to the user's %USERPROFILE%. But I feel there's a compelling reason to resist this first suggestion and instead do something else, and that reason is that we are dealing with _Windows_. Anybody with a little experience with Windows knows that the day may come when your entire OS installation has been hosed (particularly, maybe, if you are a home user and your machine serves multiple purposes) and you'll be doing a reformat of C: ... and there go your laboriously-crafted shell init files and ALL the other data in your ~/ dir(s). Happy day, not. I think it's rational and prudent to make a completely separate directory for Cygwin users' home dirs. I personally don't want my Cygwin files to live on the same partition (logical drive) with the Windows system. I'd make a directory like D:\home and then use the Cygwin setup .bat files and the predefined and admin-defined (in the case of Win9x) Windows env variables to get to them. See my site above for examples of what i mean. It's really pretty trivial .bat scripting and involves setting maybe two new variables only for Win9x in your autoexec.bat. FWIW, Soren A -- 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/