Mailing List Archive


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

Re: [tlug] Strange shell quoting issue



Josh Glover wrote:
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/

Try this instead:

====== SCRIPT BEGIN =======
#!/bin/sh
RSYNC="rsync -e ssh -av --exclude=\.*"

echo ${RSYNC} ./ example.com:test_dir/
${RSYNC} ./ example.com:test_dir/

====== SCRIPT END =======


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links