X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com From: Jim Rome Subject: Re: Spawning Java from C Date: Fri, 24 Feb 2012 16:13:28 +0000 (UTC) Lines: 20 Message-ID: References: <4F4678CB DOT 7030900 AT gmail DOT com> <4F469FDF DOT 8010002 AT cs DOT umass DOT edu> <4F470417 DOT 3060105 AT cygwin DOT com> <4F47A7BB DOT 9010304 AT cs DOT umass DOT edu> <4F47B1DF DOT 6090901 AT cs DOT umass DOT edu> <4F47B486 DOT 7090107 AT cs DOT umass DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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