X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 	tests=AWL,BAYES_40,RCVD_NUMERIC_HELO,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Oleksandr Gavenko <gavenko@bifit.com.ua>
Subject: Re: Run cmd.exe with /c.
Date: Tue, 23 Mar 2010 09:43:10 +0200
Lines: 23
Message-ID: <ho9ree$u89$1@dough.gmane.org>
References: <ho82hb$59h$1@dough.gmane.org> <4BA86D10.2050103@tlinx.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
In-Reply-To: <4BA86D10.2050103@tlinx.org>
X-IsSubscribed: yes
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

On 2010.03.23 9:26, Linda Walsh wrote:
> Also if you want to use comspec, use it with cygpath:
>
> $(cygpath $COMSPEC) /c dir
>
I try add

   $(error $(cygpath d:/tmp))

and

temp:
	echo $(cygpath d:/tmp)

But it seems $(cygpath ) not expanded to Cygwin path.

My solution use

   $(subst \,/,$(COMSPEC))

or

   $(shell cygpath -u d:/tmp)


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

