From 4761b594a62984abea2f060ed22e4ccf97626a47 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Wed, 28 Oct 2020 19:32:24 -0700 Subject: [PATCH] developer: Fix bat reading data from stdin during tests --- test/shimexec/bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/shimexec/bat b/test/shimexec/bat index d7dcd6e..bb1c8d5 100755 --- a/test/shimexec/bat +++ b/test/shimexec/bat @@ -1,10 +1,12 @@ #!/usr/bin/env bash +exec 3<&0 + # Find the real bat. HERE="$(cd "$(dirname "$0")" && pwd)" while read -d ':' -r dir; do if [[ "$dir" == "$HERE" || -z "$dir" ]]; then continue; fi if [[ -f "${dir}/bat" ]]; then - exec "${dir}/bat" "$@" --no-config --theme="Monokai Extended" + exec "${dir}/bat" "$@" --no-config --theme="Monokai Extended" <&3 fi done <<<"$PATH:"