From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19799 invoked by alias); 30 Sep 2014 06:35:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19788 invoked by uid 89); 30 Sep 2014 06:35:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: smtprelay1.kyivstar.ua Received: from Smtprelay1.kyivstar.ua (HELO smtprelay1.kyivstar.ua) (81.23.23.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 30 Sep 2014 06:35:48 +0000 Received: from [134.249.138.84] (helo=pie) by smtprelay1.kyivstar.ua with esmtp (Exim 4.63) (envelope-from ) id 1XYr3R-0001jE-4n for cygwin@cygwin.com; Tue, 30 Sep 2014 09:36:57 +0300 Received: from localhost (localhost [127.0.0.1]) by pie (Postfix) with ESMTP id CB152609D4 for ; Tue, 30 Sep 2014 09:35:37 +0300 (EEST) Received: from pie ([127.0.0.1]) by localhost (pie.mwg.dp.ua [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aD0ypMUGDNnf for ; Tue, 30 Sep 2014 09:35:25 +0300 (EEST) Received: from tag (unknown [192.168.77.1]) by pie (Postfix) with ESMTPS id 19F76608B0 for ; Tue, 30 Sep 2014 09:35:24 +0300 (EEST) Received: from [IPv6:::1] ([::1]) (AUTH: PLAIN mwg) by tag with ESMTPA; Tue, 30 Sep 2014 09:35:22 +0300 id 00000000000101FF.00000000542A4F2B.00003034 Message-ID: <542A4F29.80204@mwg.dp.ua> Date: Tue, 30 Sep 2014 07:32:00 -0000 From: Wladimir Mutel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Cygwin64, 'unzip -d' misbehaviour vs. Cygwin32 Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-09/txt/msg00442.txt.bz2 Dear all, I have a .zip archive on a different NTFS filesystem than Cygwin64 TMP folder (say, .zip on I: and TMP on C:). I create a temporary folder by 'mktemp -d' and then try to unpack .zip archive into that folder : unzip -d $folder $archive I notice that files are unpacked into I:\TMP\ folder instead of C:\Cygwin64\tmp\ (unzip recreates temporary subfolder with same name inside I:\TMP\, while initial subfolder under c:\cygwin64\tmp\ remains empty) Trying to work around this problem, I do this : p=$(pwd)/$archive # archive is relative path under /cygdrive/i/ , # so I construct abs.path ( cd $folder unzip $p ) # in subshell to keep current pwd unchanged Then I get a message like : unzip: cannot find either /cygdrive/i/path/archive.zip or /cygdrive/i/path/archive.zip.zip. Even more, unzip -v /cygdrive/i/path/archive.zip invariably fails in this way under Cygwin64. What I see is that unzip accepts only relative paths for archive files. And that it improperly handles specified unpack directory (-d). No such problems are observable under Cygwin32. unzip works exactly as specified with both absolute and relative paths, as well as with unpack folder on different filesystem from .zip archive. Please try to reproduce my findings and fix them on Cygwin64 side or tell me how could I fix them myself (if it is my personal problem). Thanks in advance for your help. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple