test-lib: improve on previous fix
With GNU "grep" \b works but it's safer to use "egrep" which is also POSIX rather than "grep" as not all the "grep"s out there might support \b. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Jan 15, 2016 at 16:35 UTC
14462092f8835abb38bb281888176f9f24655ca9
1 file changed
+1
-1
test/sharness/lib/test-lib.sh
+1
-1
@@ -321,7 +321,7 @@ test_should_contain() {
321
test_str_contains() {
322
find=$1
323
shift
324
- echo "$@" | grep "\b$find\b" >/dev/null
324
+ echo "$@" | egrep "\b$find\b" >/dev/null
325
}
326
327
disk_usage() {