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 actually

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

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

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 it

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

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

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

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 dandy ls -l

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 - 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 itself.

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)A6YEG-Q;'II`T*(R!D97-CFEP=EO;B`Z M()A8VMU!-7-Q;!UVEN9R!S:F$N97AE#0HC(1A=4@,C%-87(P-0T* M(R!V,2XP#0ID:7)B86-K=7`](F,Z+V)A8VMU]F87)MR\B#0IE=F%L(9I M;5D871E/20H9%T92YE4@)RLE95B)7DG*0T*;',@+6P@)1IF)A8VMU

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 #

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

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/SQLyog

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 when theres

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 carry the

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 real name? No,

When are Windows Short Path Names required

2005-10-22 Thread zzapper
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? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- Unsubscribe info:

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 only in

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