in reply to RE: RE: RE: search disk and prompt for deletion of files larger than a certain size
in thread search disk and prompt for deletion of files larger than a certain size
Honestly, programmers tend to be aware in their gut of the problems you could get into with spaces and Don't Do That. But end users blithely type "My Personal Stuff" into the GUI and then wonder much later why something broke.
Oh, and Microsoft does it as well. For example "Program Files". "My Computer".
I have seen them be burned by it as well. I forget which vesion of IE and Excel, but if you were on a computer where temporary internet files went into a path with spaces (for instance, c:\\WINNT\Temporary Internet Files) and you passed them a .csv file from a CGI script with arguments (a url like http://yoursite/yourpath/some.cgi/nicename.csv?month=200004) then it would break the path to the temporary downloaded file into components and try to launch Excel multiple times, one per component.
Oops.
This is why real data structures are safer than constantly parsing and reparsing text like shell scripts do.
|
|---|