I'm trying to set the shell command for org-babel with this:

(setq org-babel-sh-command "/home/luser/bash-redir-stderr.sh")

, but it doesn't seem to have any effect.

My blocks are named "shell" and not "sh", though.

1 Answer 1


org-babel-sh-command was removed in Org 8.3, shell-file-name should be used instead.

Note that if you set it globally, all inferior shells will use shell-file-name. It might be advisable to set it as a local variable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.