X-Recipient: archive-cygwin@delorie.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.2040105@cn.fujitsu.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@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

