[MERGE] Bugfix #68124: Allow import plugins from zip archives
John Arbash Meinel
john at arbash-meinel.com
Tue Jan 2 19:15:48 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jan Hudec wrote:
...
>> I don't know why os.path.split('a/b/c') works on Windows, but I assume
>> it's Windows-specific compatibility code.
>
> Because '/' *is* valid path separator on windows. In fact all windows
> syscalls do accept both '/' and '\' as separator. As far as I know (and
> I often run Windows commands from cygwin shell), the only place wehre
> '/' is not accepted is in cmd.exe in path to executable and in arguments
> to builtin commands. Everywhere else it just works.
>
>> Certainly, it behaves differently on Windows vs Unix:
>>>>> a = 'a\\b\\c'
>>>>> os.path.split(a)
>> ('', 'a\\b\\c')
>
> Sure. Because on unix '\\' is a legal character in filename.
Yeah. I'm not sure why cmd.exe works that way, but I'm guessing it is
because Windows likes to use '/' for options. So you can do:
dir /ap
But you can *also* do:
dir/ap
Or even
dir..
I certainly often typed "cd.." before I started using unix (ahh, the old
dos days when you *had* to use a terminal. How I do not miss thee. :)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFmq9kJdeBCYSNAAMRAjqOAJ95GREyPjqWqKs479irNQwGUROX8wCfeqwD
WsFkc3sRhWu2LsAbvS4Xmis=
=2oqm
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list