That is a classic stupid user trick. :-)

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.


In reply to RE (tilly) 4: search disk and prompt for deletion of files larger than a certain size by tilly
in thread search disk and prompt for deletion of files larger than a certain size by gregorovius

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.