all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Klaus Berndl <klaus.berndl@sdm.de>
Subject: Re: non-interactive extracting the contents of a tar-file
Date: 28 Jun 2005 10:42:11 +0200	[thread overview]
Message-ID: <u1x6myisc.fsf@sdm.de> (raw)
In-Reply-To: 87d5q6c2w9.fsf@tiger.rapttech.com.au

On 28 Jun 2005, Tim X. wrote:

>  Klaus Berndl <klaus.berndl@sdm.de> 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 <some directory>
> > >  tar xf <some tar file>
> > 
> > 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'?

No, untarring is done via elisp - see tar-mode.el

>  
>  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.

yes, good point!

>  
>  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?

I had the wish to do it completely from within Emacs for my package so the
user has no need for installing stuff like tar or gzip (especially in
Windows-envs) - but the latter one is impossible, i see it now...

Klaus


>  
>  Tim

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Carl-Wery-Str. 42, 81739 Muenchen, Germany
Tel +49 89 63812-392, Fax -220

  reply	other threads:[~2005-06-28  8:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-27 10:23 non-interactive extracting the contents of a tar-file Klaus Berndl
2005-06-27 10:51 ` Peter Dyballa
2005-06-27 19:30 ` J. Alejandro Noli
2005-06-28  7:18 ` Stefan Monnier
2005-06-28  8:39   ` Klaus Berndl
2005-06-28 17:02     ` Edward O'Connor
     [not found] ` <mailman.1302.1119869779.2857.help-gnu-emacs@gnu.org>
2005-06-27 11:11   ` Klaus Berndl
2005-06-27 11:33     ` Peter Dyballa
2005-06-28  8:16     ` Tim X
2005-06-28  8:42       ` Klaus Berndl [this message]
2005-06-28  9:36       ` Peter Dyballa
2005-06-28  8:12   ` Tim X
  -- strict thread matches above, loose matches on Subject: below --
2005-06-27 11:47 klaus.berndl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u1x6myisc.fsf@sdm.de \
    --to=klaus.berndl@sdm.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.