logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

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. unix/zipgrep | 4 ----
  7. 1 file changed, 4 deletions(-)
  8. diff --git a/unix/zipgrep b/unix/zipgrep
  9. index b9d2316..3ac7612 100755
  10. --- a/unix/zipgrep
  11. +++ b/unix/zipgrep
  12. @@ -49,10 +49,6 @@ status_grep_global=1
  13. IFS='
  14. '
  15. -# Escape shell-special characters in "pat".
  16. -pat=` echo "$pat" | \
  17. - sed -e 's/\\\\/\\\\\\\\/g' -e 's/|/\\\|/g' -e 's/&/\\\&/g' `
  18. -
  19. # Use "unzip -Z1" to get a listing of the specified members from the
  20. # specified archive. Escape any backslashes in a file name.
  21. for i in `unzip -Z1 "$zipfile" ${1+"$@"} | sed -e 's/\\\\/\\\\\\\\/g' `; do
  22. --
  23. 2.45.2