From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67926: 29.1; fail to extract ZIP subfile named with [...] Date: Thu, 28 Dec 2023 16:56:51 +0200 Message-ID: <83plyq74uk.fsf@gnu.org> References: <83a5q1dy1h.fsf@gnu.org> <831qb8anak.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6865"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67926@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 28 15:58:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rIrpz-0001fX-Tv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Dec 2023 15:58:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIrpn-0002fn-Cl; Thu, 28 Dec 2023 09:58:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIrpj-0002fW-B5 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 09:58:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIrpi-0005SA-Nq for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 09:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIrph-00029u-Ov for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 09:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2023 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67926 X-GNU-PR-Package: emacs Original-Received: via spool by 67926-submit@debbugs.gnu.org id=B67926.17037754358230 (code B ref 67926); Thu, 28 Dec 2023 14:58:01 +0000 Original-Received: (at 67926) by debbugs.gnu.org; 28 Dec 2023 14:57:15 +0000 Original-Received: from localhost ([127.0.0.1]:40147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIrox-00028c-0m for submit@debbugs.gnu.org; Thu, 28 Dec 2023 09:57:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIrot-00028G-4M for 67926@debbugs.gnu.org; Thu, 28 Dec 2023 09:57:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIron-0005Hp-N7; Thu, 28 Dec 2023 09:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=C3urZe2fyyKHJd39uppbrT8ShWt1gmDte2oqx26tiG4=; b=rsu0THZFrM2N ih58gxK4vsny3rPoaelOGeM47+WkDzpa5A8bIBKVXMiu44LIeCcSYg9Rgdyy5ZHULU2qRRFmWDuoq 5gPUfPoCmBytgsBjv28WRCl8+2W6MCnTtoZ71NXBVw/oQNHd9/0x7JsNG3z06/RqQnOk+rlmHFuL+ 2dtl5f/gg56tsgnCldLP7O+ITf/BFCpbXx97r46I/eBVA7fRMxI2Np6Ds11anONVsdRghROhSMZFc IWCnja5gBa+BI5DwJT3a3WkDheazB++00qXQ8Rms3PZz3pJ9OTtRcC8Zag+eYyWI84Knxqftzt0CA msKHKJLQ76DMxpCjSdYNzg==; In-Reply-To: <831qb8anak.fsf@gnu.org> (message from Eli Zaretskii on Tue, 26 Dec 2023 19:25:39 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276980 Archived-At: > Cc: 67926@debbugs.gnu.org > Date: Tue, 26 Dec 2023 19:25:39 +0200 > From: Eli Zaretskii > > > From: awrhygty@outlook.com > > Cc: 67926@debbugs.gnu.org > > Date: Tue, 26 Dec 2023 23:51:01 +0900 > > > > Eli Zaretskii writes: > > >> This is because 'unzip.exe' treats subfilename arguments containing > > >> '[...]' as subfilename patterns. This does not occur with '7z.exe'. > > > > > > Is there any way of making 'unzip' extract file[abc].txt by name, by > > > some kind of escaping or protecting the [...] wildcard from expansion? > > > If there is such a way, we could try using it (maybe); if there's no > > > such way, I will tag this bug "wontfix", since it isn't a problem with > > > Emacs, but with the Windows build of 'unzip'. > > > > There is a tricky way to specify "file[[]abc].txt". > > That could be a good solution if it works reliably. I've now verified that it works reliably, and replaced shell-quote-argument with this special quoting in archive-zip-extract (but only when the program used to extract files is "unzip"). So the original problem of this bug report is now fixed, and I think we can close this bug.