about cmd /c and Quote

Pern blueiris4@gmail.com
Thu Feb 11 03:08:00 GMT 2010


i want to run cmd like this in cygwin:
  cmd /c echo "a b"      --> "a b"
  cmd /c echo "ab"       -->  ab
but the second cannnot work right
because i really want to print out the "
i also try this:
  cmd /c echo '"ab"'     --> "\"ab\""
u see, the result is so strange

how can i to print a " ?
and what do cygwin do to my command  cmd /c echo '"ab"'  ?


--
Best Regards
--------------------------------------------------
Pern
--------------------------------------------------


-- 
Pern

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



More information about the Cygwin mailing list