summaryrefslogtreecommitdiffstats
path: root/tests/load-functions
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-12-07 22:51:52 +0100
committerMattias Andrée <maandree@kth.se>2023-12-07 22:51:52 +0100
commit9f449569df9c94670f51fd8cd5558b66884cd877 (patch)
tree21d3c31e22b2cd0544351584c8614e70b66826e4 /tests/load-functions
parentFourth commit (diff)
downloadlibsyscalls-9f449569df9c94670f51fd8cd5558b66884cd877.tar.gz
libsyscalls-9f449569df9c94670f51fd8cd5558b66884cd877.tar.bz2
libsyscalls-9f449569df9c94670f51fd8cd5558b66884cd877.tar.xz
Improve portability
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'tests/load-functions')
-rw-r--r--tests/load-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/load-functions b/tests/load-functions
index a31f236..2e9ddda 100644
--- a/tests/load-functions
+++ b/tests/load-functions
@@ -11,7 +11,7 @@ getlist () {
if test $# = 0; then set cat; fi
"$@" < libsyscalls.h \
| tr , '\n' \
- | sed -n 's/^\s*LIBSYSCALLS_'"${getlist_list}"'_\([A-Z0-9_]\+\(\s*=\s*[ 0-9A-Fa-fxXULul()^&|!*/<>~+-]\+\)\?\)\b.*$/\1/p' \
+ | sed -n 's/^[[:space:]]*LIBSYSCALLS_'"${getlist_list}"'_\([A-Z0-9_]\{1,\}\([[:space:]]*=[[:space:]]*[[:space:]0-9A-Fa-fxXULul()^&|!*/<>~+-]\{1,\}\)\{0,1\}\)\([^A-Za-z0-9_].*\)*$/\1/p' \
| tr = ' ' \
| (i=0; while read name value; do
if test -n "$value"; then