www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/06/18/19:40:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1A519385AE63
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 25INeAM8014698
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1655595610;
bh=H2dEcjPAkBSXOgu1hyRgcdtJ/oYJZcquAqcYCYQ/CVM=;
h=Date:From:To:Subject:In-Reply-To:References:From;
b=XlhH/ZTANjKPMDnNdtINQEQ++/HhYfJpUOVpxBFqN81TlwBs5qkL1Vgj9EAf1d9oa
yESEfXra9opSxirHO6qlndZmqqo6INtE/7AD3LVcpJb/ozbSXL4yzksqN2B6RTOVk7
vyMR66R5xIqb/4fVIJlWO54Clpk0Tl8u/gVrwxZCbB9sldfOambPyVjQ6YO4SKizQf
mhllB9q7Dl+qn3jxlt6hsOi6/wJh/RMnw+hNMhAWrA2SCyZxpxVjzJtHS0jTiG5u7m
Ypn3FQ8xxyUxbIJHRb7+lq8ynj/ZKFMes7L4PYGGIAF8RPjFZ9iUsndIJiz+2Tvskn
E8Va/zLljKQ8w==
X-Nifty-SrcIP: [119.150.44.95]
Date: Sun, 19 Jun 2022 08:40:11 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: unzip failure to recognize '--'
Message-Id: <20220619084011.16198091b4c0f611ff4de541@nifty.ne.jp>
In-Reply-To: <CAKwdsS-ZDR_ZFAkVwPci4mdcYcjONN_yoSb5sLxK678RRgfVmA@mail.gmail.com>
References: <20220615183007 DOT 7xchz44wwbx2gnio AT lucy DOT dinwoodie DOT org>
<ba73b31b-be25-fe58-98de-11d8cad679cd AT towo DOT net>
<20220617002939 DOT 65c772fc3504f992b6fcf4d9 AT nifty DOT ne DOT jp>
<CAKwdsS-ZDR_ZFAkVwPci4mdcYcjONN_yoSb5sLxK678RRgfVmA AT mail DOT gmail DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sat, 18 Jun 2022 15:08:35 -0700
Backwoods BC wrote:
> I'm tacking 'unzip' this issue on here since it seems appropriate:
> Unzip does not recognize the standard '--' flag to tell it to stop
> looking for flags.
> 
> I was processing some files that started with '--' and I ended up
> having to use 'cygpath' to expand them to absolute paths so that unzip
> wouldn't complain.

As you already recognized, Info-zip utility does not support '--'
flag. This is not a bug but by design. It can easily treats the
file name beginning with '-' as follows.

touch -- -d -x
zip ./--abc.zip ./-d ./-x
rm -- -d -x
unzip ./--abc.zip '\-d'


-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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

- Raw text -


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