Hi!

On Wed, Nov 19, 2008 at 01:55:02PM +0100, LIVAI Daniel wrote:
>$ uname -mrsv
>OpenBSD 4.4 GENERIC#0 i386
>$ pwd
>/home/daniell

>$ tar -C / -cvf test.tar ./home/daniell/.ksh*
>tar: Unable to access ./home/daniell/.ksh*: No such file or directory
>tar: WARNING! These file names were not selected:
>./home/daniell/.ksh*

>$ ls -l /home/daniell/.ksh*
>-rw-r-----  1 daniell  daniell [...] /home/daniell/.ksh_logout
>-rw-r-----  1 daniell  daniell [...] /home/daniell/.kshrc

>Without the wildcard, it is working as expected. Anyone else 
>experiencing this? Is this a known problem?

Wildcards are expanded by the *shell*. The *shell*'s working directory
is *not* changed by *tar*'s option -C. *tar* does *not* expand
wildcards.

Kind regards,

Hannah.

Reply via email to