From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20601 invoked by alias); 7 Sep 2008 20:33:28 -0000 Received: (qmail 20594 invoked by uid 22791); 7 Sep 2008 20:33:28 -0000 X-Spam-Check-By: sourceware.org Received: from ACCESS1.CIMS.NYU.EDU (HELO access1.cims.nyu.edu) (128.122.81.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 07 Sep 2008 20:32:21 +0000 Received: from localhost (localhost [127.0.0.1]) by access1.cims.nyu.edu (8.13.8+Sun/8.13.8) with ESMTP id m87KWJ6k017370 for ; Sun, 7 Sep 2008 16:32:19 -0400 (EDT) Date: Sun, 07 Sep 2008 20:33:00 -0000 From: Igor Peshansky Reply-To: The Cygwin-Talk Maiming List To: The Cygwin-Talk Maiming List Subject: Re: GNU tar somewhat cleverer than I thought In-Reply-To: <01c901c910f3$e7e239f0$9601a8c0@CAM.ARTIMI.COM> Message-ID: References: <01c901c910f3$e7e239f0$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Vulgar and Unprofessional Cygwin-Talk List X-SW-Source: 2008-q3/txt/msg00085.txt.bz2 On Sun, 7 Sep 2008, Dave Korn wrote: > http://www.gnu.org/software/tar/manual/tar.html#SEC112 > > " Note that the file 'cherry' is recorded in the archive under the > precise name 'cherry', not 'food/cherry'. Thus, the archive will contain > three files that all appear to have come from the same directory; if the > archive is extracted with plain 'tar --extract', all three files will be > written in the current directory. > > Contrast this with the command, > > $ tar -c -f jams.tar grape prune -C food red/cherry > > which records the third file in the archive under the name 'red/cherry' > so that, if the archive is extracted using 'tar --extract', the third > file will be written in a subdirectory named 'orange-colored'. " > > :) That's some fairly powerful AI they must have there. Well, it *is* GNU software... Reminds me of a story where a Ph.D. student put the following footnote on page 50 of his thesis: "I owe you a beer". Then, on page 150 of his thesis, he put another footnote: "I owe you a case of beer". His advisor comes to the defense and opens up with: "I read your thesis, and you owe me a beer". In other words, they are just checking if you're paying attention. Apparently, you are. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it." -- Rabbi Hillel