Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Andrey Repin
Greetings, Denis Excoffier! >> On Thu, Dec 20, 2012 at 6:55 AM, Denis Excoffier wrote: >>> However i don't see how to >>> derive the 8.3 form from my original filename, using DOS only. >> >> The /X argument to cmd.exe's dir command will give you the 8.3 name if >> it exists. Note that your syste

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Eric Blake
On 12/20/2012 02:34 PM, Denis Excoffier wrote: > On 2012-12-20, 18:49, Earnie Boyd wrote: >> On Thu, Dec 20, 2012 at 6:55 AM, Denis Excoffier wrote: >>> However i don't see how to >>> derive the 8.3 form from my original filename, using DOS only. >> >> The /X argument to cmd.exe's dir command will

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Denis Excoffier
On 2012-12-20, 18:49, Earnie Boyd wrote: > On Thu, Dec 20, 2012 at 6:55 AM, Denis Excoffier wrote: >> However i don't see how to >> derive the 8.3 form from my original filename, using DOS only. > > The /X argument to cmd.exe's dir command will give you the 8.3 name if > it exists. Note that your

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Denis Excoffier
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 l

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Denis Excoffier
On 2012-12-20 14:42, Corinna Vinschen wrote: > On Dec 20 12:55, Denis Excoffier wrote: >> On Thu, Dec 20, 2012 at 11:34:37AM +0100, Csaba Raduly wrote: H Denis, On Wed, Dec 19, 2012 at 5:20 PM, Denis Excoffier wrote: > > Hello, > > I try to use the @pathname featu

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Earnie Boyd
On Thu, Dec 20, 2012 at 6:55 AM, Denis Excoffier wrote: > However i don't see how to > derive the 8.3 form from my original filename, using DOS only. The /X argument to cmd.exe's dir command will give you the 8.3 name if it exists. Note that your system can be configured to not produce the 8.3 fo

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Andrey Repin
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 derive

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Corinna Vinschen
On Dec 20 12:55, Denis Excoffier wrote: > On Thu, Dec 20, 2012 at 11:34:37AM +0100, Csaba Raduly wrote: > >> H Denis, > >> > >> On Wed, Dec 19, 2012 at 5:20 PM, Denis Excoffier wrote: > >> > > >> > Hello, > >> > > >> > I try to use the @pathname feature (see > >> > http://cygwin.com/cygwin-ug-net

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Denis Excoffier
On Thu, Dec 20, 2012 at 11:34:37AM +0100, Csaba Raduly wrote: >> H Denis, >> >> On Wed, Dec 19, 2012 at 5:20 PM, Denis Excoffier wrote: >> > >> > Hello, >> > >> > I try to use the @pathname feature (see >> > http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-at), >> > but it does n

Re: argv @-expansion with pathname containing spaces

2012-12-20 Thread Csaba Raduly
H Denis, On Wed, Dec 19, 2012 at 5:20 PM, Denis Excoffier wrote: > > Hello, > > I try to use the @pathname feature (see > http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-at), > but it does not seem to work when pathname contains a space character. > > My test pathname is D:\Docu

argv @-expansion with pathname containing spaces

2012-12-19 Thread Denis Excoffier
Hello, I try to use the @pathname feature (see http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-at), but it does not seem to work when pathname contains a space character. My test pathname is D:\Documents and Settings\myuser\Desktop\test; with C:\Home\myuser\test it works perfec