Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Rsync exclusion question
- Date: Thu, 11 Jun 2009 12:10:13 +0100
- From: Doug McLean <dmclean635@example.com>
- Subject: Re: [tlug] Rsync exclusion question
- References: <956ae5a90906100208k6ec1aeebnebb17f7534b8183a@example.com> <11380cb60906100242w7a13b869j5b4d3315a4125f53@example.com> <956ae5a90906100308l215adc81m1dcfbb54dc826472@example.com> <d8fcc0800906100527p59d4d548v42999d96e7ad066c@example.com> <956ae5a90906100547i2e610cct42b8b075c50b6d6@example.com> <d8fcc0800906100614s4c909d0fj8091e3bfe9926c18@example.com> <4A30D148.1090004@example.com> <d8fcc0800906110258y553b9712hcb55c5a3ed4b6d69@example.com> <956ae5a90906110321k54545d53rb3cbae6f7044aaa0@example.com> <d8fcc0800906110355h21af4adtce1ddc3d95164988@example.com>
On Thu, Jun 11, 2009 at 11:55 AM, Josh Glover<jmglov@example.com> wrote: > 2009/6/11 Doug McLean <dmclean635@example.com>: > >> By using single-quotes, the shell would defer interpolation of the >> file-exclusion to the rsync command itself. In other words, defer and >> let rsync sort things out, which is as it should be. > > Well, I am definitely missing something about how interpolation works, > since I cannot reproduce the expansion of the * wildcard. I'm fairly > certain I've been bitten by this at some point, however, and that is > why I started always single-quoting * and ?. > > 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. For what it's worth, the double-quotes worked correctly on the command-line, but didn't in the script. So, not sure if that weighs in on the issue, or the use of 'env' in executing the script. In any case, I think that's sound advice: use of non-interpolating quotes reduces the complexity of what you're trying to do. -- Doug McLean Blog: http://nihonshukyo.wordpress.com/
- References:
- [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Clemens Schwaighofer
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Josh Glover
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] [TLUG] Rsync exclusion question
- From: Josh Glover
- Re: [tlug] Rsync exclusion question
- From: John Fremlin
- Re: [tlug] Rsync exclusion question
- From: Josh Glover
- Re: [tlug] Rsync exclusion question
- From: Doug McLean
- Re: [tlug] Rsync exclusion question
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Rsync exclusion question
- Next by Date: Re: [tlug] (OT) The enigma of Japan
- Previous by thread: Re: [tlug] Rsync exclusion question
- Next by thread: Re: [tlug] Rsync exclusion question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links