Subject: Re: argv @-expansion with pathname containing spaces
From: Denis Excoffier <[email-masked]>
To: Andrey Repin <[email-masked]>
Cc: "[email-masked]" <[email-masked]>
Date: Thu, 20 Dec 2012 22:19:34 +0100
List-Id: <cygwin.cygwin.com>

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