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