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?

As far as I know, the shell is evaluating the wildcard, not tar. And
putting a dot (.) in from of your root (/) is likely to break the
wildcard so why don't you use:

    $ tar -C / -cvf test.tar /home/daniell/.ksh*

Bertrand

Reply via email to