master hovercats/oakiss / pkg / unzip / patch / 0031-Do-not-escape-shell-special-characters-in-pat.patch
 1From 39d270017e54c35683eab58de5059eda6d697c97 Mon Sep 17 00:00:00 2001
 2From: Vincent Lefevre <vincent@vinc17.net>
 3Date: Mon, 28 Apr 2025 12:57:34 -0700
 4Subject: [PATCH] Do not escape shell-special characters in "pat"
 5
 6---
 7 unix/zipgrep | 4 ----
 8 1 file changed, 4 deletions(-)
 9
10diff --git a/unix/zipgrep b/unix/zipgrep
11index b9d2316..3ac7612 100755
12--- a/unix/zipgrep
13+++ b/unix/zipgrep
14@@ -49,10 +49,6 @@ status_grep_global=1
15 IFS='
16 '
17 
18-# Escape shell-special characters in "pat".
19-pat=` echo "$pat" | \
20- sed -e 's/\\\\/\\\\\\\\/g' -e 's/|/\\\|/g' -e 's/&/\\\&/g' `
21-
22 # Use "unzip -Z1" to get a listing of the specified members from the
23 # specified archive.  Escape any backslashes in a file name.
24 for i in `unzip -Z1 "$zipfile" ${1+"$@"} | sed -e 's/\\\\/\\\\\\\\/g' `; do
25-- 
262.45.2
27