mirror of
https://github.com/lloeki/apply.git
synced 2025-12-06 09:24:38 +01:00
Add tests for 'run' and fix non-POSIX behavior
This commit is contained in:
parent
d7586c4071
commit
dafb44313c
5 changed files with 148 additions and 7 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue