delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/16/12:26:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.2.20030216092053.01da49a8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sun, 16 Feb 2003 09:27:03 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: How to make dos windows bring up BASH automatically
In-Reply-To: <b2ogu3$s3p$1@main.gmane.org>
References: <000f01c2d5d5$265bb590$78d96f83 AT pomello>
<b2oc96$fkj$1 AT main DOT gmane DOT org>
<000f01c2d5d5$265bb590$78d96f83 AT pomello>
Mime-Version: 1.0

Steve,

I see. This will work if a simple invocation of "bash" with no options 
is acceptable.

1) Make sure Cygwin's /bin or /usr/bin directory are in your system-wide PATH.
2) Invoke "cygstart bash" (don't type the quotes, of course)

A new window appears running a new instance of BASH.

If you want to run a script so you can do more sophisticated start-up 
processing (or simply passing some options to bash), you'll need to set 
up an association for a suffix (possibly .sh or .bash) and create a 
script with such a name and start that with cygstart.

You'll need to install the "cygutils" package to get "cygstart."

Randall Schulz


At 09:17 2003-02-16, Steve wrote:
>Max Bowsher wrote:
>>Steve wrote:
>>
>>>I have set up my path so that I can type "bash" in any dos window and
>>>get bash.
>>>
>>>I would like to set this up to be automatic, such that whenever I
>>>activate a window for dos, that dos window comes up with the command
>>   ^^^^^^^^^^^^^^^^^^^^^^^^^
>>Please explain what you mean by this.
>>
>>>to switch to bash already executed.
>
>Well right now I can bring up dos and type "bash" to get bash in that window.
>
>I would like not to have to type "bash".
>
>I would like to bring up a dos window and have bash already be there 
>as if I typed bash.
>
>Sorry for not being clear
>
>Steve


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019