In this case there's no reason really. Just force of habit from when I use commands in $findfile() which require that the filename be valid.

If someone wanted to add something to that code to include the file size after the filename they could put $file($1-) on the end of the command parameter and it would correctly get the file size, whereas if I didn't use .shortfn it would fail on multi-spaced filenames.


Spelling mistakes, grammatical errors, and stupid comments are intentional.