[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/4] scripts/bash_aliases: man_lsfunc(), man_lsvar(): Use pcre
From: |
Alejandro Colomar |
Subject: |
[PATCH v2 3/4] scripts/bash_aliases: man_lsfunc(), man_lsvar(): Use pcre2grep(1) instead of pcregrep(1) |
Date: |
Sun, 3 Nov 2024 02:17:12 +0100 |
pcregrep(1) is obsolete.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
scripts/bash_aliases | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/bash_aliases b/scripts/bash_aliases
index 25425c389..98b466410 100644
--- a/scripts/bash_aliases
+++ b/scripts/bash_aliases
@@ -54,7 +54,7 @@ man_lsfunc()
|mandoc -Tutf8 2>/dev/null \
|col -pbx \
|sed_rm_ccomments \
- |pcregrep -Mn '(?s)^ [\w ]+ \**\w+\([\w\s(,)[\]*]*?(...)?\s*\); *$' \
+ |pcre2grep -Mn '(?s)^ [\w ]+ \**\w+\([\w\s(,)[\]*]*?(...)?\s*\); *$' \
|grep '^[0-9]' \
|sed -E 's/syscall\(SYS_(\w*),?/\1(/' \
|sed -E 's/^[^(]+ \**(\w+)\(.*/\1/' \
@@ -77,8 +77,8 @@ man_lsvar()
|mandoc -Tutf8 2>/dev/null \
|col -pbx \
|sed_rm_ccomments \
- |pcregrep -Mv '(?s)^ [\w ]+ \**\w+\([\w\s(,)[\]*]+?(...)?\s*\); *$' \
- |pcregrep -Mn \
+ |pcre2grep -Mv '(?s)^ [\w ]+ \**\w+\([\w\s(,)[\]*]+?(...)?\s*\); *$' \
+ |pcre2grep -Mn \
-e '(?s)^ +extern [\w ]+ \**\(\*+[\w ]+\)\([\w\s(,)[\]*]+?\s*\); *$' \
-e '^ +extern [\w ]+ \**[\w ]+; *$' \
|grep '^[0-9]' \
--
2.39.5
signature.asc
Description: PGP signature
- [PATCH 0/3] Add mansect(1) program and manual page, Alejandro Colomar, 2024/11/02
- [PATCH] CONTRIBUTING.d/patches: Document new features alongside the features, Alejandro Colomar, 2024/11/02
- [PATCH 1/3] signal.7: Better description for SIGFPE, Alejandro Colomar, 2024/11/02
- [PATCH 2/3] src/bin/mansect, mansect.1: Add program and its manual page, Alejandro Colomar, 2024/11/02
- [PATCH 3/3] scripts/bash_aliases: man_section(), man_lsfunc(), man_lsvar(): Use mansect(1), Alejandro Colomar, 2024/11/02
- [PATCH v2 0/4] Add mansect(1), Alejandro Colomar, 2024/11/02
- [PATCH v2 1/4] src/bin/mansect, mansect.1: Add program and its manual page, Alejandro Colomar, 2024/11/02
- [PATCH v2 2/4] scripts/bash_aliases: man_lsfunc(), man_lsvar(): Use mansect(1), Alejandro Colomar, 2024/11/02
- [PATCH v2 3/4] scripts/bash_aliases: man_lsfunc(), man_lsvar(): Use pcre2grep(1) instead of pcregrep(1),
Alejandro Colomar <=
- [PATCH v2 4/4] src/bin/mansect: Preprocess with preconv(1), Alejandro Colomar, 2024/11/02