delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/26/11:23:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 26 Jun 2001 11:20:13 -0400
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: "Fred T. Hamster" <fred AT gruntose DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: two problems with cygwin's zip
Message-ID: <20010626112013.A7369@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "Fred T. Hamster" <fred AT gruntose DOT com>, cygwin AT cygwin DOT com
References: <3B38A4B7 DOT 6040803 AT gruntose DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <3B38A4B7.6040803@gruntose.com>; from fred@gruntose.com on Tue, Jun 26, 2001 at 11:05:27AM -0400

On Tue, Jun 26, 2001 at 11:05:27AM -0400, Fred T. Hamster wrote:
>i have checked the faq and the mailing list and don't find the totally 
>relevant answers, so here are the problems...
>
>1) zip saves absolute paths in the zipfile.  for example, if i zip up 
>"l:\source\lib_src\library\basis"/* into a zip file, all of the files in 
>the archive start with "l:\".  this leads, on unzipping, for zip to want 
>to write them back into "l:\" rather than unzipping into the current 
>directory.  that is clearly a bad choice if my files on l:\ are somewhat 
>better versions than those in the zip.
>  the infozip distribution doesn't exhibit this behavior in the dos 
>port; instead, it chops off the absolutist part of the path and leaves 
>it as "source\lib_src\library\basis".
>  note that using the -j flag to junk the paths is not appropriate; my 
>zip files often contain 50-100 directories.  i definitely don't want 
>them to all be dropped into the same directory on unzipping.

Cygwin is a UNIX emulation environment.  The cygwin zip program is a
UNIX port.  It probably doesn't know that \ is equivalent to /.

We don't guarantee that every port of every utility that is distributed
with cygwin will properly handle MS-DOS path syntax.  I don't think
that many package maintainers even care about this.

So, use forward slashes in your filenames.  That is one of the whole
reasons for Cygwin -- the ability to use UNIX paths.

If you don't want to use Cygwin's UNIX path name facilities then you
should just be using a native zip port.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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