Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Rsync exclusion question



On Fri, Jun 12, 2009 at 11:28:49AM +0900, John Fremlin wrote:
> Josh Glover wrote:
> > I think the Best Practise to always use non-interpolating quotes 
> > unless you know you need interpolation is the way to go. That way,
> > you don't need to understand the interpolation rules of your
> > programming language all the way down to the metal.
> 
> I don't know how you can include not understanding the language you are 
> using in a Best Practice ;-)
> 
> Seeing as the interpolation and wildcard expansion rules affect both the
> security and correctness of your scripts, spending a few minutes to
> understand these simple rules will not only save you time debugging (for
> certain) but also possibly prevent minor catastrophes. (Both over- and
> under- quoting cause problems.)

When those few minutes all of a sudden morph into hours because of that
'small little detail' that you forgot, following best practices that
have been known to avoid all of these issues isn't such a bad idea after
all.

Now if the goal is to understand everything then take your time. I 
certainly try to (poorly).

Alain


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links