HomeFreeBSD

bin/pkill: Fix {pgrep,pkill}-j_test.sh

Description

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

Details

Provenance
arichardsonAuthored on Feb 13 2021, 1:53 PM
Reviewer
imp
Differential Revision
D28480: bin/pkill: Fix {pgrep,pkill}-j_test.sh
Parents
rG90b5fc95832d: lib/libc/tests/rpc: Correctly set timeout
Branches
Unknown
Tags
Unknown