delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/15/04:16:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <416F8848.A0051A32@dessent.net>
Date: Fri, 15 Oct 2004 01:20:24 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Selectively zipping files together
References: <200410142236921 DOT SM01168 AT fasolt>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Siegfried Heintze wrote:

> Well that was one of my questions. What is the zip utility that comes with
> Cygwin? 

The package name is "zip" and contains the info-zip code from
<http://www.info-zip.org/>.  The commands are "zip" and "unzip".  Type
"zip -h" or "man zip" for usage.  I find it very bizarre that someone
could be familiar with the "find", "tar", and "jar" commands but never
have it occur to him to try "zip".

> Is it compatible with Windows zip?

A zip file is a zip file, it doesn't matter what platform the program
that created it was running under.  So, yes.  But you can verify this
yourself in about 20 seconds worth of work.

> And what about using tar with find? I hope that is not off topic. Why does
> tar insist on zipping up the entire directory instead of just the files I
> select with find?

Probably because you're passing tar directory names in addition to
filenames.

And you shoudn't use the terminology "zipping up" because the tar file
format has nothing to do with zip.  I also noticed that in your example
you were having tar create a filename ending in .zip.  This is a very
bad thing to do - tar creates tar files, not zip files, and misnaming
the file as such will only cause confusion.  Don't confuse "tar" for a
compression program, it's not.  tar files are usually compressed
seperately with one of several compression methods (.tar.gz, .tar.bz2,
.tar.Z, etc.)

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019