delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/24/11:14:18

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 <jamesrome AT gmail DOT 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 DOT 7030900 AT gmail DOT com> <4F469FDF DOT 8010002 AT cs DOT umass DOT edu> <4F470417 DOT 3060105 AT cygwin DOT com> <loom DOT 20120224T155416-441 AT post DOT gmane DOT org> <4F47A7BB DOT 9010304 AT cs DOT umass DOT edu> <loom DOT 20120224T163445-929 AT post DOT gmane DOT org> <4F47B1DF DOT 6090901 AT cs DOT umass DOT edu> <loom DOT 20120224T165425-643 AT post DOT gmane DOT org> <4F47B486 DOT 7090107 AT cs DOT umass DOT edu>
Mime-Version: 1.0
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

> 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

- Raw text -


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