* isn't a shell glob in this case it is a simple pattern wildcard
meaning "anything".
On 01/24/2018 02:23 PM, Ken Chase via rsync wrote:
> not a bug, buy colour me confused:
>
> /tmp/foo$ mkdir a
> /tmp/foo$ touch a/foo
> /tmp/foo$ touch a/.baz
> /tmp/foo$ cd ..
> /tmp$ rsync -avP --exclude=
not a bug, buy colour me confused:
/tmp/foo$ mkdir a
/tmp/foo$ touch a/foo
/tmp/foo$ touch a/.baz
/tmp/foo$ cd ..
/tmp$ rsync -avP --exclude=a/* foo bar
sending incremental file list
created directory bar
foo/
foo/a/
sent 71 bytes received 20 bytes 182.00 bytes/sec
total size is 0 speedup