public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Soren A <soren_andersen@fastmail.fm>
To: cygwin@cygwin.com
Subject: Re: cygwin.bat suggestions
Date: Wed, 21 Aug 2002 12:39:00 -0000	[thread overview]
Message-ID: <Xns92718947E197Bsoren1Gmane@80.91.224.249> (raw)
In-Reply-To: <20020710134906.GA8942@butch.jgcomp.com>

Jon LaBadie <jcyg@jgcomp.com> 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/

  parent reply	other threads:[~2002-08-21 17:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-10  7:40 Jon LaBadie
2002-07-11 13:07 ` Chris Game
2002-08-21 12:39 ` Soren A [this message]
2002-08-21 17:59   ` Soren A
2002-07-10  7:48 Robinow, David
2002-07-10 11:33 Polley Christopher W
2002-07-11  5:23 Vince Hoffman
2002-07-11  6:03 ` Mark Himsley
2002-07-12 10:03   ` Jim.George
2002-07-12 15:17     ` Mark Himsley
2002-07-12 22:22       ` Jim George
2002-07-13  0:06         ` Christopher Faylor
2002-07-11 11:05 Polley Christopher W
2002-07-11 11:26 Polley Christopher W
2002-07-14  4:24 Vince Hoffman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Xns92718947E197Bsoren1Gmane@80.91.224.249 \
    --to=soren_andersen@fastmail.fm \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).