From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: non-interactive extracting the contents of a tar-file Date: 28 Jun 2005 18:16:22 +1000 Message-ID: <87d5q6c2w9.fsf@tiger.rapttech.com.au> References: Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119949698 25767 80.91.229.2 (28 Jun 2005 09:08:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 09:08:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 28 11:08:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnC4c-0002ur-Dn for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2005 11:08:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnCCQ-0001rA-5w for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2005 05:16:10 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 39 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-NNTP-Posting-Host: ppp1-192.lns1.syd3.internode.on.net Original-X-Trace: duster.adelaide.on.net 1119946582 59.167.1.192 (28 Jun 2005 17:46:22 +0950) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp-out.svc.us.xo.net!nntp1-feeder.SJ.svc.us.xo.net!newsfeed.concentric.net!sjc1.nntp.concentric.net!newsfeed-3001.bay.webtv.net!news.moat.net!nntp.waia.asn.au!203.16.214.244.MISMATCH!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:132214 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27688 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27688 Klaus Berndl writes: > On Mon, 27 Jun 2005, Peter Dyballa wrote: > > > > Am 27.06.2005 um 12:23 schrieb Klaus Berndl: > > > > > Is it possible with tar-mode (or other already existing elisp-code), to > > > extract the full contents of a tar-file to a certain directory (or > > > at least to > > > default-directory)? > > > > There is an easier work-around in Emacs shell: > > > > cd > > tar xf > > Hmm, i forgot to mention that i want it do without external programs like > tar and gz! > But doesn't emacs tar-mode just use tar 'under the hood'? It may be possible to work out how to extract files from a tar archive reasonably easily, but the unzipping/decompressing is going to be difficult/impossible. Also, keep in mind that as GNU tar also supports bzip2 compression, we are likely to see archive.tar.bz2 as well as archive.tar.gz more often. Why the need not to use the correct tools? Is it because of platforms which may not have tar or tar and gunzip equivelants and if so, what platforms? Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!