]> 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>
Wed, 17 Mar 2021 09:57:15 +0000 (09:57 +0000)
commita24b7455e86935232799f4adb4ec4c5ce115101c
tree219dac807a2dfc7f16e82c9bd807fcc2e2d1b91b
parentb40b1ae9d59d15ddbb2a7ddd1d5291d3b71e227b
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

(cherry picked from commit 5ff2e55e0071dabbf18cdbe13a1230822d1270d4)
bin/pkill/tests/pgrep-j_test.sh
bin/pkill/tests/pkill-j_test.sh