"tar --exclude-backups" does not exclude files with tilde at end

view story

http://unix.stackexchange.com – If I have the following directory: $ ls -a foo . .. a #a# a~ b b.bkp c .git .hg .svn and call: $ tar zcf foo-no-bkp.tar.gz --exclude-backups foo/ The resulting archive still has backup files (even those considered backup files according to the documentation). $ tar ztf foo-no-bkp.tar.gz foo/ foo/a~ foo/.svn/ foo/#a# foo/.hg/ foo/a foo/.git/ foo/b.bkp foo/c foo/b I am using GNU tar 1.26 on Ubuntu 12.04. What can be wrong? Should it be considered a bug? (HowTos)