Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Hannu E K Nevalainen" To: Subject: RE: Strange Cygwin issue Date: Fri, 24 Oct 2003 11:28:39 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-reply-to: Importance: Normal > From: Dylan Cuthbert > Sent: Friday, October 24, 2003 8:10 AM > Did you sort this problem out eventually? We're having the same problem. > > We pass a DOS command that we've compiled in Vis.C a parameter > from within a > bash shell and all our quotes are "played" with. > > ie. #> ourcommand 'my oh my "this is a string" that is played with' > > and we get "my oh my \"this is a string\" that is played with" > (including the surrounding double quotes) in our DOS program. > > Not what we want really. I'd say; play with temporary files. e.g: $ echo >/tmp/tmp_$$ "command arg1 \"arg2.1 arg2.2\" arg.3" $ cmd /c $(cygpath -WA /tmp/tmp_$$) $ rm /tmp/tmp_$$ /Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E -- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); -- --END OF MESSAGE-- -- 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/