bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tar 1.13, -C and -T don't work together


From: Greg Wooledge
Subject: tar 1.13, -C and -T don't work together
Date: Tue, 3 Sep 2002 09:36:21 -0400
User-agent: Mutt/1.4i

I'm using GNU tar 1.13 on HP-UX 10.20.  One of my users is writing a
backup script using GNU tar and wants to combine the -C and --files-from
switches, like this:

    .... | tar rvf $writeto -C /a/directory/name --files-from -

No matter what ordering or spelling we use for the -C/--directory and
-T/--files-from options, it seems that -C is completely ignored whenever
-T is used.  If I change the tar command to this:

    .... | (cd /a/directory/name; tar rvf $writeto --files-from -)

then it works as expected.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]