jnath / apt-cyg

Automatically exported from code.google.com/p/apt-cyg
MIT License
0 stars 0 forks source link

'apt-cyg' should work for Windows Accounts with spaces #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I don't know what the possible values for last-cache are in setup.rc, but since 
my account name has a <SPACE> in it, the following works.

Also, you did quote the mkdir and cd in ONE place, but another one was left 
unquoted.

$ apt-cyg --version
apt-cyg version 0.59

$ diff /usr/bin/apt-cyg /usr/bin/apt-cyg.DIST
80c80
<     print $0

---
>     print $1
292,293c292,293
<   mkdir -p "$cache/$mirrordir/$dn"
<   cd "$cache/$mirrordir/$dn"

---
>   mkdir -p $cache/$mirrordir/$dn
>   cd $cache/$mirrordir/$dn

thanks,
--stephen

Original issue reported on code.google.com by stephen....@gmail.com on 8 Nov 2014 at 6:03

GoogleCodeExporter commented 9 years ago
Oops, missed another...
366c366
<   cd "$cache/$mirrordir/$dn"
---
>   cd $cache/$mirrordir/$dn

I guess i'm not convinced that Cygwin itself is quite capable of dealing with 
spaces

cygwin warning:
  MS-DOS style path detected: C:/Users/Stephen
  Preferred POSIX equivalent is: /cygdrive/c/Users/Stephen
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
/usr/bin/apt-cyg: line 366: cd: C:/Users/Stephen: No such file or directory
tar: subversion-1.8.10-2.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

bleah.

Original comment by stephen....@gmail.com on 8 Nov 2014 at 6:25