Skip to content

Fix grep and escape issue - #3574

Open
buzzia2001 wants to merge 2 commits into
masterfrom
fix/search-grep-escape
Open

buzzia2001 wants to merge 2 commits into
masterfrom
fix/search-grep-escape

Conversation

@buzzia2001

Copy link
Copy Markdown
Member

Changes

Search terms and member names containing shell-special characters are now passed to the search command literally.

  • Search term and member filter are properly single-quoted, instead of double-quoted with partial escaping.
  • With QShell grep, QShell now expands the member glob itself. Before, PASE expanded it and QShell aborted on large source files.
  • Member lists are converted to American variant characters, so members with special characters in their name are found on non-US CCSIDs.
  • Search tests now cover both pfgrep and QShell, special characters in member names, and a large source file.

How to test this PR

  1. Run npx vitest run suites/search.test.ts.
  2. Create a source file with members containing $, ', ", ` in their source, plus members named like A$B, #ABC, @ABC.
  3. Use Search Source File... with those characters as search terms: only the right members are returned, and there are no errors.
  4. Repeat using a filter with a generic member name (e.g. #*, $*).

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

Closes #3562

@buzzia2001
buzzia2001 requested a review from a team December 6, 2026 10:30
@buzzia2001 buzzia2001 self-assigned this Dec 6, 2026
@buzzia2001 buzzia2001 added the bug A confirmed issue when something isn't working as intended label Dec 6, 2026
@buzzia2001
buzzia2001 deployed to testing_environment December 6, 2026 10:31 — with GitHub Actions Active
@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

👋 A new build is available for this PR based on 2cc2f2a.

This branch was successfully deployed

1 active deployment
testing_environment — 2cc2f2a1 Deployed Dec 6, 2026 by buzzia2001 via Test runner #825
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A confirmed issue when something isn't working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error searching source members

1 participant