public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin.bat
@ 2001-09-08 15:04 Alex Malinovich
  0 siblings, 0 replies; 19+ messages in thread
From: Alex Malinovich @ 2001-09-08 15:04 UTC (permalink / raw)
  To: cygwin

Just a quick observation. Cygwin.bat calls "bash --login -i" to start
cygwin. Wouldn't it be a bit better to instead use 'start' to launch
bash?

e.g.

"start bash --login -i" 

By using 'start' bash is called, and then the batchfile continues
execution. (it ends)

This would alleviate the issue of "Terminate batch job?" messages that
occasionally crop up when closing the window. It also allows more than
one instance of bash to be called by using a keyboard shortcut. I have
ctrl-alt-c set to call cygwin.bat. The only problem is that if I already
have a window open, it won't allow me to open a second one that way
since the batch file is still "running". Using 'start', I can now open
as many windows as I want. AFAIK the 'start' command has been
implemented in all MS OS's since 95 so compatibility shouldn't be an
issue. Just a suggestion.

-Alex


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* cygwin.bat
@ 2007-11-19 16:17 123cu
  2007-11-19 16:18 ` cygwin.bat Brian Mathis
  2007-11-20 10:51 ` cygwin.bat Carlo Florendo
  0 siblings, 2 replies; 19+ messages in thread
From: 123cu @ 2007-11-19 16:17 UTC (permalink / raw)
  To: cygwin


First, I am a newbee to Cygwin so please excuse my lack of knowledge.

I have a text file (aaa.txt) which contains a simple grep command. When I
start Cygwin.bat, I want this file to be started (executed) as part of
invoking the cygwin.bat file. I don't know how to do it. Any help will be
appreciated.

cygwin.bat file
@echo on

C:
chdir C:\cygwin\bin
set HOME=\cygwin
bash --login -i
-- 
View this message in context: http://www.nabble.com/cygwin.bat-tf4837351.html#a13839178
Sent from the Cygwin list mailing list archive at Nabble.com.


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* cygwin.bat
@ 2003-05-10  3:14 derek
  2003-05-10  3:31 ` cygwin.bat Igor Pechtchanski
  0 siblings, 1 reply; 19+ messages in thread
From: derek @ 2003-05-10  3:14 UTC (permalink / raw)
  To: cygwin

Anyone actually find that thing useful?
I removed it because I was tired of CTRL-C getting intercepted when I
closed a window.


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: cygwin.bat
@ 2001-09-08 15:27 Bobby McNulty
  2001-09-08 17:56 ` cygwin.bat Michael Erdely
  0 siblings, 1 reply; 19+ messages in thread
From: Bobby McNulty @ 2001-09-08 15:27 UTC (permalink / raw)
  To: "Alex Malinovich", cygwin

"Alex Malinovich" <baggend@howlermonkey.net> wrote:

>Just a quick observation. Cygwin.bat calls "bash --login -i" to start
>cygwin. Wouldn't it be a bit better to instead use 'start' to launch
>bash?
>
>e.g.
>
>"start bash --login -i" 
>
>By using 'start' bash is called, and then the batchfile continues
>execution. (it ends)
>
>This would alleviate the issue of "Terminate batch job?" messages that
>occasionally crop up when closing the window. It also allows more than
>one instance of bash to be called by using a keyboard shortcut. I have
>ctrl-alt-c set to call cygwin.bat. The only problem is that if I already
>have a window open, it won't allow me to open a second one that way
>since the batch file is still "running". Using 'start', I can now open
>as many windows as I want. AFAIK the 'start' command has been
>implemented in all MS OS's since 95 so compatibility shouldn't be an
>issue. Just a suggestion.
>
>-Alex
>
>
>--
>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/
>
>
I just tried it out.

start /r bash --login -i

When exit is sent, the window closes without any fuss.




__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* cygwin.bat
@ 2000-08-10 13:48 Jonas Jensen
  2000-08-10 14:01 ` cygwin.bat DJ Delorie
  0 siblings, 1 reply; 19+ messages in thread
From: Jonas Jensen @ 2000-08-10 13:48 UTC (permalink / raw)
  To: Cygwin List

I'm wondering why the Cygwin.bat file is still used for new installations.
It causes problems with CTRL+C and it leaves a cmd.exe waiting in the
background for each Cygwin window opened.
It used to set variables, but they're all set in /etc/profile now, although
some users still appear to have their old Cygwin.bat... which must mean they
get those variables set twice (and that should cause duplications when
prepending to $PATH).

Why not just point the shortcut directly to bash.exe with the neccesary
parameters?

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-11-20  6:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-08 15:04 cygwin.bat Alex Malinovich
  -- strict thread matches above, loose matches on Subject: below --
2007-11-19 16:17 cygwin.bat 123cu
2007-11-19 16:18 ` cygwin.bat Brian Mathis
2007-11-20 10:51 ` cygwin.bat Carlo Florendo
2003-05-10  3:14 cygwin.bat derek
2003-05-10  3:31 ` cygwin.bat Igor Pechtchanski
2003-05-10  3:53   ` cygwin.bat derek
2003-05-10  4:01     ` cygwin.bat Larry Hall (RFK Partners, Inc.)
2003-05-10 21:56       ` cygwin.bat Sam Edge
2003-05-11  1:10         ` cygwin.bat Christopher Faylor
2003-05-11  2:18           ` cygwin.bat Sam Edge
2003-05-11  2:18             ` cygwin.bat Christopher Faylor
2003-05-11  3:31               ` cygwin.bat Sam Edge
2003-05-11  3:50                 ` cygwin.bat Christopher Faylor
2001-09-08 15:27 cygwin.bat Bobby McNulty
2001-09-08 17:56 ` cygwin.bat Michael Erdely
2001-09-08 22:44   ` cygwin.bat Alex Malinovich
2000-08-10 13:48 cygwin.bat Jonas Jensen
2000-08-10 14:01 ` cygwin.bat DJ Delorie

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).