Heads up: gtar gone from base system
Brian K. White
brian at aljex.com
Mon Mar 28 21:18:48 PST 2005
----- Original Message -----
From: "David Schultz" <das at FreeBSD.ORG>
To: "Brian K. White" <brian at aljex.com>
Cc: <freebsd-current at FreeBSD.ORG>
Sent: Monday, March 28, 2005 11:15 PM
Subject: Re: Heads up: gtar gone from base system
> On Mon, Mar 28, 2005, Brian K. White wrote:
>> > To move file hierarchies, use a command line like this:
>> >
>> > tar -cf - -C srcdir . | tar xpf - -C destdir
>>
>> Why not?
>> Isn't that just a slight convenience for this?:
>> cd srcdir ; tar cf - . |( cd destdir ; tar xpf - )
>
> detsdir: No such file or directory.
would -C have created it if it didn't exist?
if C means change to a dir first, I would read that as implying that the dir
exists to cd into.
otherwise it's a convenience for this:
cd srcdir ; tar cf - . |( [ -d destdir ] || mkdir -p destdir ;cd destdir ;
tar xpf - )
which I'd agree is no longer a slight convenience
In any event, we now know the feature was there, merely not demonstrated.
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the freebsd-current
mailing list