X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Subject: RE: Redirecting bash stdin
Date: Tue, 25 Apr 2006 08:12:25 -0400
Message-ID: <31DDB7BE4BF41D4888D41709C476B657041687CB@NIHCESMLBX5.nih.gov>
In-Reply-To: <444D2C01.5080602@gmail.com>
From: "Buchbinder, Barry \(NIH/NIAID\) [E]" <BBuchbinder@niaid.nih.gov>
To: <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k3PCCcqB008270

Dave wrote:
> Eric Blake wrote:
>> According to Dave on 4/21/2006 11:45 AM:
>> 
>>> I'm trying to get a mingw GUI application to pipe commands to
>>> cygwins bash by redirecting its stdin as described here
>>> <http://support.microsoft.com/?id=190351>.
>> 
>> Why not just spawn bash with command line arguments, and use the -c
>> flag to pass the commands as arguments rather than on stdin?
> 
> I'm aware of the -c flag. I may use it if I'm convinced the pipe
> won't work, but really I'm trying to avoid creating lots of "bash -l"
> instances.  

Have you tried piping into "bash -s"?  Probably won't be any different
than the other piping you've tried, but maybe it will.

- Barry
	Disclaimer:  Statements made herein are not made on behalf of
NIAID.

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


