How to make tar globbing work with the 'change directory' option

view story

http://unix.stackexchange.com – I have the followin directory structure: base/ files/ archives/ scripts/ I want a script to run from scripts/, compress files that match results.*.log in files/ into a gzipped tar archive in archives/. I'm trying the following command: tar czfC ../archives/archive.tar.gz ../files results.*.log But I get tar: results.*.log: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors While tar czfC ../archives/archive.tar.gz ../files results.a.log works as expected. Also tar czf ../archives/archive.tar.gz ../files/results.*.log works (HowTos)