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: Mon, 15 Jun 2009 17:56:32 +0900
- From: John Fremlin <john@example.com>
- Subject: Re: [tlug] Rsync exclusion question
- References: <956ae5a90906100208k6ec1aeebnebb17f7534b8183a@example.com> <956ae5a90906100547i2e610cct42b8b075c50b6d6@example.com> <d8fcc0800906100614s4c909d0fj8091e3bfe9926c18@example.com> <4A30D148.1090004@example.com> <d8fcc0800906110258y553b9712hcb55c5a3ed4b6d69@example.com> <956ae5a90906110321k54545d53rb3cbae6f7044aaa0@example.com> <d8fcc0800906110355h21af4adtce1ddc3d95164988@example.com> <4A31BD61.2000900@example.com> <d8fcc0800906120209j6aeb6fbg2aafcc59648762b3@example.com> <4A35CFF1.8010209@example.com> <d8fcc0800906150055m7bacf80av56b827ee96ac1468@example.com>
- User-agent: Thunderbird 2.0.0.21 (X11/20090409)
Josh Glover wrote:2009/6/15 John Fremlin <john@example.com>:Of course one *should* understand the basics of interpolation in any language one uses. But the Best Practice is about avoiding interpolation altogether unless you *know* you want it in a string, and then understanding the rules as they apply to that string.How is interpolation relevant to the (alleged) difference between "*.leases" and '*.leases'?I don't know, but it appears to be, given that switching to single quotes has resolved Doug's problem. Are you confused by me referring to (possible) wildcard expansion as interpolation?Yes. You started with the idea that wildcard expansion occurred in "strings". I don't think it does nor could I find an example of it occurring. The man pages I quoted state that it doesn't. That is anyway quite different from interpolation.Then you wandered off into a digression about interpolation. That is indeed a key difference between "strings" and 'strings'.However, it is not relevant to the alleged difference between "*.leases" and '*.leases', as far as I can see.From the nomikai there are a few people curious to know what it is so I'm sure we'd appreciate any investigations ;-)I've seen old Unix hands tripped up by shell interpolation many times.It can lead to very serious bugs so I don't see how there are any excuses for being muddled up.Sure, we are in agreement here. I don't exactly understand what you are arguing--do you think that the idea of avoiding interpolating quotes unless you need them is a bad one?Using the simplest string literal syntax sounds reasonable.However, I think it's far more important to know what you're doing. On the other hand, as Al said, if you want to be an average IT guy then that might be asking too much.Unfortunately, in the shell 'strings' are also quite strange as you cannot quote '. Maybe your idea is more fully appropriate to languages like Python which have more reasonable quoting systems.
- References:
- [tlug] [TLUG] Rsync exclusion question
- From: Doug McLean
- 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
- Re: [tlug] Rsync exclusion question
- From: John Fremlin
- Re: [tlug] Rsync exclusion question
- From: Josh Glover
- Re: [tlug] Rsync exclusion question
- From: John Fremlin
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Rsync exclusion question
- Next by Date: Re: [tlug] Linux habits in Windows world
- 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