Can't use bat as cat replacement
Closed this issue ยท 3 comments
loeffel-io commented
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! ๐
loeffel-io commented
keith-hall commented
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.
loeffel-io commented
tltr: my fault ๐ thanks for your response anyways!
