Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Sat, 22 Oct 2005 20:46:04 +0100, wrote: >Hi > >$ cygpath -d c:/Program\ Files/Internet\ Explorer >c:\PROGRA~1\INTERN~1 > >I've just had another case where the I had to use the short form, is the short >form the "real name"? Hi just solved my problem:- sjaprog='/cygdrive/c/Program Files/SQLy

Re: When are Windows Short Path Names required

2005-10-24 Thread Brian Dessent
zzapper wrote: > /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ > Enterprise/sja.exe: No > such file or directory > > But a ls is just dandy There's double quoting now. My email wasn't quite correct, use one or the other but not both: foo=/path\ with\ spaces or f

Re: When are Windows Short Path Names required - jraynersqlzip (1/1)

2005-10-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to zzapper on 10/24/2005 6:56 AM: Please convince your mailer to send text files with a text mime-type, not application/octet-stream. Reposting here for convenience: #!/bin/bash # jraynersqlzip # description : backup Mysql using sja.exe # d

Re: When are Windows Short Path Names required - jraynersqlzip (1/1)

2005-10-24 Thread zzapper
begin 644 jraynersqlzip M(R$O8FEN+V)A<[EMAIL PROTECTED]"B,@:G)A>6YE7-Q;"!U&4@)RLE9"5B)7DG*0T*;',@+6P@)&1I6]G+W-J M82YE>&4B#0IS:F%P6]G M7"!%;G1E&4B#0IS:F%S8W)I<'0](F,Z+V-Y9W=I;B]U M6YE6YEhttp://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Re: When are Windows Short Path Names required - jraynersqlzip (0/1)

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 13:49:45 +0100, wrote: >> > >Please attach the script in question verbatim (ie don't edit it) so that >we can have a look and see what's going on. :) >Obviously, if there are passwords, or server names, or ip address, you >can mask those.. >Just don't change the script its

Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor
zzapper wrote: On Mon, 24 Oct 2005 13:02:31 +0100, wrote: zzapper wrote: On Mon, 24 Oct 2005 04:28:37 -0700, wrote: Whatever I try I get /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe: No such file or directory But a ls is just dandy ls -

Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 13:02:31 +0100, wrote: >zzapper wrote: >> On Mon, 24 Oct 2005 04:28:37 -0700, wrote: >> >> Whatever I try I get >> >> /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ >> Enterprise/sja.exe: No >> such file or directory >> >> But a ls is just dand

Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor
zzapper wrote: On Mon, 24 Oct 2005 04:28:37 -0700, wrote: Whatever I try I get /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe: No such file or directory But a ls is just dandy ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe -rwx

Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 04:28:37 -0700, wrote: Whatever I try I get /usr/local/sbin/jraynersqlzip: line 14: /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe: No such file or directory But a ls is just dandy ls -l /cygdrive/c/Program\ Files/SQLyog\ Enterprise/sja.exe -rwx--+ 1 davidr None

Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor
zzapper wrote: On Mon, 24 Oct 2005 12:09:41 +0100, wrote: One question.. When you were trying with spaces.. Did you try escaping the \ ? (as in Program\\ Files) I've found this to be necessary at times, though I can't remember an instance at the moment. Does the command run from the console

Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Mon, 24 Oct 2005 12:09:41 +0100, wrote: >One question.. When you were trying with spaces.. Did you try escaping >the \ ? (as in Program\\ Files) >I've found this to be necessary at times, though I can't remember an >instance at the moment. >Does the command run from the console if you start

Re: When are Windows Short Path Names required

2005-10-24 Thread Brian Dessent
zzapper wrote: > See script below sja.exe is actually in program files, my kludge below was to > use a mount (rather > than the short name) I don't see anything here that necessitates using a mount or 8.3. > sjaprog="/sqlyog/sja.exe" sjaprog="/cygdrive/c/program\ files/whatever/sja.exe" > sja

Re: When are Windows Short Path Names required

2005-10-24 Thread Chris Taylor
zzapper wrote: On Sun, 23 Oct 2005 17:26:50 -0700, wrote: zzapper wrote: Sometimes it can be hard, especially when you are dealing with both Cygwin and non-Cygwin programs, because the quoting rules differ. But it is always possible, and I can't believe that there exists a situation wher

Re: When are Windows Short Path Names required

2005-10-24 Thread zzapper
On Sun, 23 Oct 2005 17:26:50 -0700, wrote: >zzapper wrote: > >Sometimes it can be hard, especially when you are dealing with both >Cygwin and non-Cygwin programs, because the quoting rules differ. But >it is always possible, and I can't believe that there exists a situation >where you are actua

Re: When are Windows Short Path Names required

2005-10-23 Thread Yitzchak Scott-Thoennes
On Sun, Oct 23, 2005 at 05:04:23PM +0100, zzapper wrote: > On Sat, 22 Oct 2005 20:46:04 +0100, zzapper wrote: > > >Hi > > > >$ cygpath -d c:/Program\ Files/Internet\ Explorer > >c:\PROGRA~1\INTERN~1 > > > >I've just had another case where the I had to use the short form, > >is the short form the "

Re: When are Windows Short Path Names required

2005-10-23 Thread Brian Dessent
zzapper wrote: > >I've just had another case where the I had to use the short form, is the > >short form the "real name"? > I think I've may be mislead you, I think my problem was more that when theres > an interaction between > *nix scripts & environment. Sometimes even quoting doesn't seem to

Re: When are Windows Short Path Names required

2005-10-23 Thread zzapper
On Sat, 22 Oct 2005 20:46:04 +0100, wrote: >Hi > >$ cygpath -d c:/Program\ Files/Internet\ Explorer >c:\PROGRA~1\INTERN~1 > >I've just had another case where the I had to use the short form, is the short >form the "real name"? I think I've may be mislead you, I think my problem was more that whe

Re: When are Windows Short Path Names required

2005-10-22 Thread Brian Dessent
Brian Dessent wrote: > Generation of the short name from the long name is not even not > guaranteed to exist or work. s/not even not guaranteed/not even guaranteed/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documenta

Re: When are Windows Short Path Names required

2005-10-22 Thread Brian Dessent
zzapper wrote: > $ cygpath -d c:/Program\ Files/Internet\ Explorer > c:\PROGRA~1\INTERN~1 > > I've just had another case where the I had to use the short form, is the > short form the "real name"? Huh? What do you mean? Does the short form uniquely identify the file? Yes, of course. But onl