sharkdp/bat

Can't use bat as cat replacement

Closed this issue ยท 3 comments

Hey, long story short:

I do run a bazel setup where a cat wrapper lives in my PATH and this wrapper is calling bat
This works as intended as long i run bazel test //....
Somehow bazel test //... is calling cat which is calling bat which is not exiting the cat command (cat cmd is still "open"/"waiting" for stdin i think)

hard to explain but maybe there are some more informations about how to have a 1:1 cat replacement ๐Ÿ™

cat wrapper

#!/bin/bash
set -eu
**some hidden informations**
bazel **some hidden informations** @multitool//tools/bat -- --paging=never "$@")

Thank you! ๐Ÿ™

cat (bat) does not exit

Image

Hi, any chance you can provide a minimum reproducible example please? I don't use bazel nor entirely understand what is happening here, so it is a little hard to advise/investigate.

tltr: my fault ๐Ÿ˜„ thanks for your response anyways!