X-Recipient: archive-cygwin@delorie.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 <cygwin@Denis-Excoffier.org>
In-Reply-To: <1187032455.20121220203600@mtu-net.ru>
Date: Thu, 20 Dec 2012 22:19:34 +0100
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Message-Id: <73EB9546-1F87-468A-B4C8-F72A0DFC9A6B@Denis-Excoffier.org>
References: <20121219162048.GA4564@qp9482> <CAEhDDbDcoiKng6D2zqb-_xKrMUnt_H8Lj7FNPgXnMfis0R9mpw@mail.gmail.com> <20121220115536.GA300@qp9482> <1187032455.20121220203600@mtu-net.ru>
To: Andrey Repin <cygwin@cygwin.com>
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
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


