Hi SamK
Spaces in Names
Two Directories, "DummyDir1" and "Dummy Dir 1" and their contents are identical apart from the spaces in directory and file names. Selecting either a file or dir not containing a space "Usage?" reports correctly. The same operation including a space reports "1 item occupying 0 KB"
Spaces in file and directory names are frequently problematic. They are often used as a field separator
and can wreak havoc in scripts that are not written to deal with them. There are some cases where
the space gets replaced with the octal escape sequence \040. For instance, if you create a mount
point with a space in it and mount something to it, the file /proc/mounts will contain \040 where the
space used to be. This is done so that the fields in that file can still be parsed correctly. As a result you
can no longer do a simple string compare on the mount point if you want to search for it. The best way
to avoid potential problems with names is to stick to A-Z, a-z, 0-9, ., _, and -. In particular, avoid things
like space, ?, *, $, and \. I'm sure there a few I missed.