unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* dired-do-compress does not *uncompress* .tgz or .tar.gz files
@ 2014-09-04 15:13 H. Dieter Wilhelm
  2014-09-04 18:37 ` Óscar Fuentes
  2014-09-04 20:20 ` Michael Heerdegen
  0 siblings, 2 replies; 8+ messages in thread
From: H. Dieter Wilhelm @ 2014-09-04 15:13 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

am I missing something?  When pressing Z in dired on a X.tgz file
dired-do-compress does not uncompress the file instead it compresses it
to an X.tar file even though the function advertises also to uncompress
files.

I'm on GNU Emacs 24.3.93.2 (x86_64-unknown-linux-gnu, GTK+ Version
2.24.24) of 2014-08-27

         Dieter
-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired-do-compress does not *uncompress* .tgz or .tar.gz files
  2014-09-04 15:13 dired-do-compress does not *uncompress* .tgz or .tar.gz files H. Dieter Wilhelm
@ 2014-09-04 18:37 ` Óscar Fuentes
  2014-09-05  5:33   ` H. Dieter Wilhelm
  2014-09-04 20:20 ` Michael Heerdegen
  1 sibling, 1 reply; 8+ messages in thread
From: Óscar Fuentes @ 2014-09-04 18:37 UTC (permalink / raw)
  To: help-gnu-emacs

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> am I missing something?  When pressing Z in dired on a X.tgz file
> dired-do-compress does not uncompress the file instead it compresses it
> to an X.tar file even though the function advertises also to uncompress
> files.

X.tgz (or X.tar.gz) is a compressed X.tar, so dired-do-compress is
behaving as advertised. What do you want is uncompress&untar. I don't
know if dired supports this.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired-do-compress does not *uncompress* .tgz or .tar.gz files
       [not found] <mailman.8267.1409853627.1147.help-gnu-emacs@gnu.org>
@ 2014-09-04 19:47 ` Stefan Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2014-09-04 19:47 UTC (permalink / raw)
  To: help-gnu-emacs

> dired-do-compress does not uncompress the file instead it compresses it
> to an X.tar file even though the function advertises also to uncompress
> files.

X.tar is not compressed: `tar' is only a format that bundles several
files together.


        Stefan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired-do-compress does not *uncompress* .tgz or .tar.gz files
  2014-09-04 15:13 dired-do-compress does not *uncompress* .tgz or .tar.gz files H. Dieter Wilhelm
  2014-09-04 18:37 ` Óscar Fuentes
@ 2014-09-04 20:20 ` Michael Heerdegen
  2014-09-04 20:38   ` Drew Adams
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2014-09-04 20:20 UTC (permalink / raw)
  To: help-gnu-emacs

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> Hello,
>
> am I missing something?  When pressing Z in dired on a X.tgz file
> dired-do-compress does not uncompress the file instead it compresses it
> to an X.tar file even though the function advertises also to uncompress
> files.

I think that mechanism is by intent limited to single files.  But a tar
archive can hold a whole directory tree.

You can visit a tar archive, even if gzipped, with tar-mode.  Just hit v
from dired.

Michael.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: dired-do-compress does not *uncompress* .tgz or .tar.gz files
  2014-09-04 20:20 ` Michael Heerdegen
@ 2014-09-04 20:38   ` Drew Adams
  2014-09-04 20:47     ` Michael Heerdegen
  0 siblings, 1 reply; 8+ messages in thread
From: Drew Adams @ 2014-09-04 20:38 UTC (permalink / raw)
  To: Michael Heerdegen, help-gnu-emacs

> > am I missing something?  When pressing Z in dired on a X.tgz file
> > dired-do-compress does not uncompress the file instead it
> > compresses it to an X.tar file even though the function advertises
> > also to uncompress files.
> 
> I think that mechanism is by intent limited to single files.  But a
> tar archive can hold a whole directory tree.

A couple of people have already explained that a tar archive is
uncompressed, and X.tar is the correct result of uncompressing
X.tgz.

As for `Z': you can apply it to any number of files, not just a
single file.  Just mark the files to be compressed, then `Z'.

But I guess you (Michael) meant something different by "limited to
single files".



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired-do-compress does not *uncompress* .tgz or .tar.gz files
  2014-09-04 20:38   ` Drew Adams
@ 2014-09-04 20:47     ` Michael Heerdegen
  2014-09-04 21:00       ` Drew Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2014-09-04 20:47 UTC (permalink / raw)
  To: help-gnu-emacs

Drew Adams <drew.adams@oracle.com> writes:

> As for `Z': you can apply it to any number of files, not just a
> single file.  Just mark the files to be compressed, then `Z'.
>
> But I guess you (Michael) meant something different by "limited to
> single files".

I meant it transforms single files to single files.  It's not intended
to create achieves from multiple file, or extract files from such
multi-file archives.

Michael.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: dired-do-compress does not *uncompress* .tgz or .tar.gz files
  2014-09-04 20:47     ` Michael Heerdegen
@ 2014-09-04 21:00       ` Drew Adams
  0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2014-09-04 21:00 UTC (permalink / raw)
  To: Michael Heerdegen, help-gnu-emacs

> > As for `Z': you can apply it to any number of files, not just a
> > single file.  Just mark the files to be compressed, then `Z'.
> >
> > But I guess you (Michael) meant something different by "limited to
> > single files".
> 
> I meant it transforms single files to single files.  It's not
> intended to create achieves from multiple file, or extract files
> from such multi-file archives.

Thanks for clarifying.  That's what I thought you meant, and now
it's clear.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired-do-compress does not *uncompress* .tgz or .tar.gz files
  2014-09-04 18:37 ` Óscar Fuentes
@ 2014-09-05  5:33   ` H. Dieter Wilhelm
  0 siblings, 0 replies; 8+ messages in thread
From: H. Dieter Wilhelm @ 2014-09-05  5:33 UTC (permalink / raw)
  To: help-gnu-emacs

Óscar Fuentes <ofv@wanadoo.es> writes:

> dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:
>
>> am I missing something?  When pressing Z in dired on a X.tgz file
>> dired-do-compress does not uncompress the file instead it compresses it
>> to an X.tar file even though the function advertises also to uncompress
>> files.

> X.tgz (or X.tar.gz) is a compressed X.tar, so dired-do-compress is
> behaving as advertised.

Sorry for my blindness, this was not my day, you're right!

> What do you want is uncompress&untar.  I don't know if dired supports
> this.

Especially because I don't have any use of raw tar files.  It would be
nice if in dired .tgz files would be untarred and uncompressd on the fly
by default.

Thanks
        Dieter
-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-09-05  5:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-04 15:13 dired-do-compress does not *uncompress* .tgz or .tar.gz files H. Dieter Wilhelm
2014-09-04 18:37 ` Óscar Fuentes
2014-09-05  5:33   ` H. Dieter Wilhelm
2014-09-04 20:20 ` Michael Heerdegen
2014-09-04 20:38   ` Drew Adams
2014-09-04 20:47     ` Michael Heerdegen
2014-09-04 21:00       ` Drew Adams
     [not found] <mailman.8267.1409853627.1147.help-gnu-emacs@gnu.org>
2014-09-04 19:47 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).