Add tests for 'run' and fix non-POSIX behavior

This commit is contained in:
Andrew Dunham 2021-07-12 22:36:20 -04:00
parent d7586c4071
commit dafb44313c
5 changed files with 148 additions and 7 deletions

View file

@ -5,11 +5,13 @@
. ../lib
oneTimeSetUp() {
printf "[INFO] Current shell is: %s\n" "$(cat /proc/$$/cmdline | tr '\0' '\n' | head -n1)"
printf "[INFO] Utility paths:\n"
for util in awk sed grep; do
printf "%8s: %s\n" "$util" "$(which "$util")"
done
if [ -n "${VERBOSE:-}" ]; then
printf "[INFO] Current shell is: %s\n" "$(</proc/$$/cmdline tr '\0' '\n' | head -n1)"
printf "[INFO] Utility paths:\n"
for util in awk sed grep; do
printf "%8s: %s\n" "$util" "$(which "$util")"
done
fi
}
setUp() {