Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-support.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schulze <martin.schulze@vireso.de>2023-08-26 14:49:21 +0300
committerMartin Schulze <martin.schulze@vireso.de>2023-08-26 14:49:21 +0300
commit37133a094744e4021a54c088f6da90d4c1233d07 (patch)
treed1095568b6094e072073f14c59d9023c79298710
parent2315212fbae9f1c380db26c17e169f51a6a489a1 (diff)
Avoid subshell
-rw-r--r--src/output.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output.bash b/src/output.bash
index bb3ff4a..10ca8ae 100644
--- a/src/output.bash
+++ b/src/output.bash
@@ -38,7 +38,7 @@ batslib_err() {
{ if (( $# > 0 )); then
echo "$@"
else
- ( PATH="$BATS_SAVED_PATH"; command cat -; )
+ PATH="$BATS_SAVED_PATH" command cat -
fi
} >&2
}
@@ -273,7 +273,7 @@ batslib_mark() {
batslib_decorate() {
echo
echo "-- $1 --"
- ( PATH="$BATS_SAVED_PATH"; command cat -; )
+ PATH="$BATS_SAVED_PATH" command cat -
echo '--'
echo
}