unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: awrhygty@outlook.com
Cc: 67926@debbugs.gnu.org
Subject: bug#67926: 29.1; fail to extract ZIP subfile named with [...]
Date: Thu, 28 Dec 2023 16:56:51 +0200	[thread overview]
Message-ID: <83plyq74uk.fsf@gnu.org> (raw)
In-Reply-To: <831qb8anak.fsf@gnu.org> (message from Eli Zaretskii on Tue, 26 Dec 2023 19:25:39 +0200)

> Cc: 67926@debbugs.gnu.org
> Date: Tue, 26 Dec 2023 19:25:39 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: awrhygty@outlook.com
> > Cc: 67926@debbugs.gnu.org
> > Date: Tue, 26 Dec 2023 23:51:01 +0900
> > 
> > Eli Zaretskii <eliz@gnu.org> 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.





  parent reply	other threads:[~2023-12-28 14:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20 11:23 bug#67926: 29.1; fail to extract ZIP subfile named with [...] awrhygty
2023-12-23 10:16 ` Eli Zaretskii
2023-12-23 11:47   ` Andreas Schwab
2023-12-23 11:58     ` Eli Zaretskii
2023-12-26 14:51   ` awrhygty
2023-12-26 17:25     ` Eli Zaretskii
2023-12-27 14:36       ` awrhygty
2023-12-27 16:48         ` Eli Zaretskii
2023-12-28  0:38           ` awrhygty
2023-12-28  6:31             ` Eli Zaretskii
2023-12-28 13:09               ` awrhygty
2023-12-28 14:06                 ` Eli Zaretskii
2024-01-03 19:53                   ` awrhygty
2024-01-03 20:00                     ` Eli Zaretskii
2024-01-03 20:02                     ` Eli Zaretskii
2023-12-28 14:56       ` Eli Zaretskii [this message]
2024-01-04 10:46         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83plyq74uk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=67926@debbugs.gnu.org \
    --cc=awrhygty@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).