From fa4113efca132caad6c2a8a0339f532bbb418023 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Apr 25 2019 19:24:47 +0000 Subject: Both /bin/which and /usr/bin/which are valid --- diff --git a/tests/p_which/which_basic.sh b/tests/p_which/which_basic.sh index 5328f33..89ccd59 100755 --- a/tests/p_which/which_basic.sh +++ b/tests/p_which/which_basic.sh @@ -2,5 +2,5 @@ # Author: Alice Kaerast t_Log "Running $0 - Checking which can find itself" -/usr/bin/which which | grep -q "/usr/bin/which" +/usr/bin/which which | grep -e -q '^(/usr)?/bin/which$' t_CheckExitStatus $?