Skip to content

Commit aa55638

Browse files
committed
pfgrep 0.4 inverts this so we don't need flag
https://github.com/SeidenGroup/pfgrep/releases/tag/v0.4
1 parent aaf5d12 commit aa55638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/Search.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export namespace Search {
3535
if (pfgrep) {
3636
// pfgrep vs. qshell grep difference: uses -r for recursion instead of -R
3737
// (GNU/BSD grep treat them the same); we don't use recursion yet though...
38-
// another difference: use -t to trim ending whitespace (pfgrep leaves intact)
39-
const command = `${pfgrep} -inHrt -F "${sanitizeSearchTerm(searchTerm)}" ${memberFilter}`;
38+
// older versions before 0.4 need -t to trim whitespace, 0.4 inverts the flag
39+
const command = `${pfgrep} -inHr -F "${sanitizeSearchTerm(searchTerm)}" ${memberFilter}`;
4040
result = await connection.sendCommand({
4141
command: command,
4242
directory: connection.sysNameInAmerican(`${asp ? `/${asp}` : ``}/QSYS.LIB/${library}.LIB/${sourceFile}.FILE`)

0 commit comments

Comments
 (0)