When i create a code block specifying bash or bash-ts mode, it uses sh-mode 
instead.

Reproduction:
1. emacs -Q
2. In the scratch buffer: M-x org-mode
3. M-x treesit-install-language-grammar
Write "bash" and choose interactive installation, then all the default options.
3. Paste this code:

#+begin_src bash-ts
[ 3 -eq 3 -a \( 2 -eq 2 -a 1 -eq 1 \) ] && echo “Parentheses can be used”
#+end_src

It creates this message: "Indentation setup for shell type zsh". And the
code block uses the sh-mode instead of the bash-ts mode.

Emacs : GNU Emacs 31.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, 
cairo version 1.18.0)
of 2025-03-10
Package: Org mode version 9.7.11 (release_9.7.11 @ 
/usr/local/share/emacs/31.0.50/lisp/org/)

Reply via email to