]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bin/pkill: Fix {pgrep,pkill}-j_test.sh
authorAlex Richardson <arichardson@FreeBSD.org>
Sat, 13 Feb 2021 13:53:50 +0000 (13:53 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Sat, 13 Feb 2021 13:53:51 +0000 (13:53 +0000)
commit5ff2e55e0071dabbf18cdbe13a1230822d1270d4
treeb0a816bbefcf21917f95711a7d45fbc8092aee17
parent90b5fc95832da64a5f56295e687379732c33718f
bin/pkill: Fix {pgrep,pkill}-j_test.sh

The POSIX sh case statement does not allow for pattern matching using the
regex + qualifier so this case statement never matches. Instead just check
for a string starting with a digit followed by any character.

While touching these files also fix various shellcheck warnings.

`kyua -v parallelism=4 test` failed before, succeeds now.

Reviewed By: imp
Differential Revision: https://reviews.freebsd.org/D28480
bin/pkill/tests/pgrep-j_test.sh
bin/pkill/tests/pkill-j_test.sh