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][tlug] Strange shell quoting issue
- Date: Thu, 21 Jun 2007 21:36:16 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: [tlug] Strange shell quoting issue
Shell gurus, why does this not work?
: jglover@example.com; cat `which sync-script`
RSYNC="rsync -e ssh -av --exclude .\*"
echo ${RSYNC} ./ somehost.example.com:/some/dir/ ${RSYNC} ./ somehost.example.com:/some/dir/
: jglover@example.com; ls -a .FILE-THAT-SHOULD-NOT-BE-XFERED file-that-should-be-xfered : jglover@example.com; sync-script rsync -e ssh -av --exclude .\* ./ somehost.example.com:/some/dir/ building file list ... done ./ .FILE-THAT-SHOULD-NOT-BE-XFERED file-that-should-be-xfered wrote 9769 bytes read 36 bytes 1782.73 bytes/sec total size is 961626 speedup is 98.08
Obviously, I am trying to exclude the .FILE-THAT-SHOULD-NOT-BE-XFERED, and if I paste the rsync command that is echoed into the term, it works as expected, so I am getting done over by quoting somehow.
I have tried all of the following, as well:
RSYNC="rsync -e ssh -av --exclude '.*'" RSYNC="rsync -e ssh -av --exclude '.\*'" RSYNC="rsync -e ssh -av --exclude .*" RSYNC="rsync -e ssh -av --exclude ".\*
WTF?
-- Cheers, Josh
- Follow-Ups:
- Re: [tlug] Strange shell quoting issue
- From: Alain Hoang
- Re: [tlug] Strange shell quoting issue
- From: Mattia Dongili
Home | Main Index | Thread Index
- Prev by Date: [tlug] Re: font encoding question
- Next by Date: Re: [tlug] Tip of the day: that cursed caps lock key
- Previous by thread: Re: [tlug] VLAN configuration on Debian
- Next by thread: Re: [tlug] Strange shell quoting issue
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links