Commit e20f825
tst_test.sh: Replace GNU word boundary \b with \< in grep
The regex word boundary extension '\b' is a GNU extension and is not
supported by Toybox and lightweight POSIX regex implementations
(such as Bionic libc), causing grep to fail with:
grep: bad regex '^[^#]*\bTST_': trailing backslash (\)
Replace '\b' with '\<' to ensure shell tests run correctly on
lightweight environments such as Android (Toybox).
Link: https://lore.kernel.org/ltp/20260630071639.2248082-1-wakel@google.com/
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Terence Tritton <ttritton@google.com>
Co-developed-by: Wake Liu <wakel@google.com>
Signed-off-by: Wake Liu <wakel@google.com>1 parent cc9206e commit e20f825
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
| |||
0 commit comments