0031-Do-not-escape-shell-special-characters-in-pat.patch (793B)
1 From 39d270017e54c35683eab58de5059eda6d697c97 Mon Sep 17 00:00:00 2001 2 From: Vincent Lefevre <vincent@vinc17.net> 3 Date: Mon, 28 Apr 2025 12:57:34 -0700 4 Subject: [PATCH] Do not escape shell-special characters in "pat" 5 6 --- 7 unix/zipgrep | 4 ---- 8 1 file changed, 4 deletions(-) 9 10 diff --git a/unix/zipgrep b/unix/zipgrep 11 index 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 -- 26 2.45.2 27