Hi Ian,

Ian Kelling <i...@iankelling.org> writes:

> I've had this bug me a few times when I work with here documents in bash.
>
> #+begin_src sh
> some-command <<'EOF'
> * some text
> EOF
> #+end_src
>
> the line beginning with * is treated as a title and folded. The same
> goes for example blocks, and perhaps other things.

You can escape leading stars by putting a comma in front of them:

#+begin_src sh
cat <<'EOF'
,* some text
EOF
#+end_src

This should do what you want.

HTH,
Albert

-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124

Reply via email to