delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/10/22:08:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4B737250.2040105@cn.fujitsu.com>
References: <4B737250 DOT 2040105 AT cn DOT fujitsu DOT com>
Date: Thu, 11 Feb 2010 11:08:06 +0800
Message-ID: <34ec1f981002101908s596af46fy4d87d3a31e7f51c5@mail.gmail.com>
Subject: about cmd /c and Quote
From: Pern <blueiris4 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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

how can i to print a " ?
and what do cygwin do to my command =C2=A0cmd /c echo '"ab"' =C2=A0?


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


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

- Raw text -


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