commit b77b9432c45d6f38c0ad6d9021afb4dd91f163e4 from: Alexander Barton date: Sat Apr 13 14:04:29 2024 UTC Test suite: Correctly test for LOGNAME and USER commit - a33d15751b3e3910bd06125efbeae6569844f313 commit + b77b9432c45d6f38c0ad6d9021afb4dd91f163e4 blob - 3cc186e1c9b8ff3c1b02d38484614dffb20aeb20 blob + 7a3dbe3789fddb14bf4a931b3aaa501d3f298e3c --- src/testsuite/getpid.sh +++ src/testsuite/getpid.sh @@ -23,7 +23,7 @@ if [ -x /usr/bin/pgrep ]; then *) PGREP_FLAGS="" esac - if [ -n "$LOGNAME" ] || [ -n "$USER" ]; then + if [ -n "${LOGNAME:-}" ] || [ -n "${USER:-}" ]; then # Try to narrow the search down to the current user ... exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1" else