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 To: cygwin AT cygwin DOT com Subject: Re: unzip failure to recognize '--' Message-Id: <20220619084011.16198091b4c0f611ff4de541@nifty.ne.jp> In-Reply-To: References: <20220615183007 DOT 7xchz44wwbx2gnio AT lucy DOT dinwoodie DOT org> <20220617002939 DOT 65c772fc3504f992b6fcf4d9 AT nifty DOT ne DOT jp> 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- 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