Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Craig McGeachie" To: cygwin AT cygwin DOT com Date: Tue, 10 Jul 2001 08:28:42 +1000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: using cygpath & make Message-ID: <3B4ABCBA.26856.14078A25@localhost> In-reply-to: <8BFEC206D292D311921500508B0BCB8D07F0103A@msgstl01.sbc.com> X-mailer: Pegasus Mail for Win32 (v3.12c) > I put together a simple target to illustrate what I am trying to do. > > mytemp: > NEW_FLAGS=`cygpath -p -w /usr/local/bis`; echo new_flags is: > "${NEW_FLAGS}" > echo "${NEW_FLAGS} Try this instead. ========> NEW_FLAGS=$(shell cygpath -w /Programs/Oracle) default: echo Newflags is $(NEW_FLAGS) <======== Which outputs: ========> Newflags is d:ProgramsOracle 560:craig$ make echo Newflags is d:\Programs\Oracle Newflags is d:ProgramsOracle <======== Of course, all those backslashes present a problem for echo, but the make variable is set correctly. You should be able to use the variable contents with Win32 native applications without problems. -----------------+--------------------------------------------------- Craig McGeachie | #include +61 (410) 774902 | while (!inebriated) c2h5oh = (++bottle)->contents; -----------------+--------------------------------------------------- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/