I have the following source block in my Org mode file:
#+begin_src sh :results output
exec 2>&1
mkdir -p /tmp/example && cd /tmp/example
echo "hello" > world
rg --color=never 'hello'
:
#+end_src
However, I never see any output in Org mode. The same code works fine in my shell. I've also compared the env
ironment of both the org-babel-execute:shell
results and my shell and they seem to differ only in TERM
.
Why doesn't rg
output anything when I execute my block?