On Thu, Jan 03, 2002 at 05:41:18AM -0500, fred smith <[EMAIL PROTECTED]> 
wrote:
| > No. It sort of works without the parens. His quoting problems (lack of) will
| > bite him as soon as he hits a less common filename.
| For my enlightenment, please remind me of what "quoting problems"
| you're referring to? I seem to have missed some parts of this thread.

You went something like this:

        mv $file `command to lowercase $file`

This will break with files with spaces in their names.
In the shell you _always_ want to say exactly what you mean, eg:

        mv "$file" "`command to lowercase $file`"

which will prevent white space interpolation in the command.

The point is that while this might work for you, it's guarrenteed that
the person who takes your code and uses it will have the worst case
dataset to use with your code :-(

That's all.
--
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

If they ever ask if you talked to me about it, you can just say no.
        - Bill Clinton



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to