From c2d44209a8f508ccb243410fc0e591976820b287 Mon Sep 17 00:00:00 2001 From: thislooksfun Date: Tue, 26 Oct 2021 13:08:39 -0500 Subject: Meta: Use grep -E/F, not grep -P grep -E and -F are POSIX standard, and meets all our matching needs. --- Meta/check-syscall-lists.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Meta/check-syscall-lists.sh') diff --git a/Meta/check-syscall-lists.sh b/Meta/check-syscall-lists.sh index 95e954a0f2..8dba593e4a 100755 --- a/Meta/check-syscall-lists.sh +++ b/Meta/check-syscall-lists.sh @@ -5,8 +5,8 @@ set -eo pipefail script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) cd "${script_path}/.." -SYSCALLS_KERNEL="$(echo 'Kernel syscalls'; echo; grep -Pio '(?<=^ S\().*(?=\)( +\\)?$)' Kernel/API/Syscall.h | sort)" -SYSCALLS_UE="$(echo 'Implemented in UserspaceEmulator'; echo; grep -Pio '(?<=^ case SC_).*(?=:$)' Userland/DevTools/UserspaceEmulator/Emulator.cpp | sort)" +SYSCALLS_KERNEL="$(echo 'Kernel syscalls'; echo; grep -Eio '(?<=^ S\().*(?=\)( +\\)?$)' Kernel/API/Syscall.h | sort)" +SYSCALLS_UE="$(echo 'Implemented in UserspaceEmulator'; echo; grep -Eio '(?<=^ case SC_).*(?=:$)' Userland/DevTools/UserspaceEmulator/Emulator.cpp | sort)" SYSCALLS_MAN2="$(echo 'Documented syscalls'; echo; find Base/usr/share/man/man2/ ! -type d -printf '%f\n' | sed -Ee 's,\.md,,' | sort)" set +e -- cgit v1.2.3