Hi Dan, Dan Haynes wrote: > [...] I accidentally discovered that cmd.exe > treats the following identically: > > cd \usr \src > cd \usr\src > > I knew that cmd.exe always tried to "imagine" quotes when paths with spaces > were used, but I didn't realize is "patches up" misspelled names like this. The reasons (pl) for this can be explained: 1) On Windows, programs get passed the whole command line as one string. It's up to the program to interpret that string. By extension the same goes for internal commands of COMMAND.COM and CMD.EXE. The "cd" command has always treated the whole command line as the single argument, even when called without quotes. So the call above is equivalent to cd "\usr \src" 2) Spaces at the end of file names are not significant, because on a traditional 8.3 FAT file system, every name that was shorter than 8.3 was internally padded with spaces anyway. This seems to have been carried over to file systems with long file names. So "\usr" is the same as "\usr ", and "\usr\src" the same as "\usr \src". so long, benny -- ISION Internet AG Benjamin Riefenstahl mailto:[EMAIL PROTECTED] Ruhrstrasse 61 D-22761 Hamburg http://www.ision.net -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]
