On Fri, Jan 04, 2002 at 10:45:44AM +1100, Cameron Simpson wrote: > 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. > <snip> > 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 :-(
Yes, that's true. Assume the worst. Thanks for the reminder. OTOH, I have this almost religious aversion to idiots who put spaces in filenames. This includes the persons in the northwestern corner of the 48-states who make it possible to do that. :^) Fred -- ---- Fred Smith -- [EMAIL PROTECTED] ----------------------------- "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of heaven, but only he who does the will of my Father who is in heaven." ------------------------------ Matthew 7:21 (niv) ----------------------------- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list