X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_RG X-Spam-Check-By: sourceware.org Subject: Re: argv @-expansion with pathname containing spaces Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii From: Denis Excoffier In-Reply-To: <1187032455.20121220203600@mtu-net.ru> Date: Thu, 20 Dec 2012 22:19:34 +0100 Cc: "cygwin AT cygwin DOT com" Message-Id: <73EB9546-1F87-468A-B4C8-F72A0DFC9A6B@Denis-Excoffier.org> References: <20121219162048 DOT GA4564 AT qp9482> <20121220115536 DOT GA300 AT qp9482> <1187032455 DOT 20121220203600 AT mtu-net DOT ru> To: Andrey Repin Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id qBKLJuXd014675 On 2012-12-20, Andrey Repin wrote: > Greetings, Denis Excoffier! > >> For the moment, the best solution i have is to copy >> the original file into, say, %TEMP%\dummy.txt, hoping that %TEMP% >> will not contain any spaces: > > It will, if %USERPROFILE% do. On most systems, user's %TEMP% will be located > in %LocalAppData%/Temp, which is derived from %USERPROFILE%. > I suppose i can afford this case, and test it using: set x=%TEMP: =X% if "%x%"~ neq "%TEMP%"~ ( echo not implemented goto error ) Thank you, Regards, Denis Excoffier. -- 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