X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0	tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Jim Rome <jamesrome@gmail.com>
Subject: Re: Spawning Java from C
Date: Fri, 24 Feb 2012 16:13:28 +0000 (UTC)
Lines: 20
Message-ID: <loom.20120224T170417-875@post.gmane.org>
References: <4F4678CB.7030900@gmail.com> <4F469FDF.8010002@cs.umass.edu> <4F470417.3060105@cygwin.com> <loom.20120224T155416-441@post.gmane.org> <4F47A7BB.9010304@cs.umass.edu> <loom.20120224T163445-929@post.gmane.org> <4F47B1DF.6090901@cs.umass.edu> <loom.20120224T165425-643@post.gmane.org> <4F47B486.7090107@cs.umass.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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


> Here's the thing I am wondering about:
> 
> In bash, in a " " quoted string, backslash acts kind of as in C and may
> need to be escaped (doubled). It can be tricky/painful to find the
> right quoting/escaping combination to get what is necessary. In a
> ' ' quoted string, you get what you type. So it would be interesting
> to see the line that tries to invoke java. You might need to run a
> script with -v or -x (or both) in effect to see exactly what bash
> is doing ...
> 

That did it, although I think I tried it with no quotes before. I also 
used Windows paths with / in them.
This was really frustrating. Cygwin should have better 
documentation about issues like this.

Thanks for the help,
Jim



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

