From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by sourceware.org (Postfix) with ESMTPS id 1A519385AE63 for ; Sat, 18 Jun 2022 23:40:23 +0000 (GMT) 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 Received: from HP-Z230 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 25INeAM8014698 for ; Sun, 19 Jun 2022 08:40:10 +0900 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 To: cygwin@cygwin.com Subject: Re: unzip failure to recognize '--' Message-Id: <20220619084011.16198091b4c0f611ff4de541@nifty.ne.jp> In-Reply-To: References: <20220615183007.7xchz44wwbx2gnio@lucy.dinwoodie.org> <20220617002939.65c772fc3504f992b6fcf4d9@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2022 23:40:27 -0000 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