[Box Backup-dev] Solaris update
   
    Stefan Norlin
     
    boxbackup-dev@fluffy.co.uk
       
    Tue, 14 Feb 2006 14:15:07 +0100
    
    
  
> In what way does the -C option behave differently? Maybe we can change
> it to work for both?
Solaris (non-GNU):
 -C directory file       Performs a chdir (see cd(1))  opera-
                             tion on directory and performs the c
                             (create) or r (replace) operation on
                             file.  Use short relative path names
                             for file.  If file is  ".",  archive
                             all files in directory. This operand
                             enables archiving files from  multi-
                             ple  directories  not  related  by a
                             close common parent.
GNU:
 -C, --directory DIR
              change to directory DIR
So... it is not really possible to find a direct use of tar that works
in both cases, I think.
However, this construct should work on all platforms:
gzip -d < trunk.tar.gz  | (cd testfiles ; tar xf -)
Does it seem ok?