On 25/02/2023 22:14, Ken Mankoff wrote:
On 2023-02-24 at 19:51 -08, Max Nikulin wrote:
The code still depends on on ob-shell. Is there a reason why calling
`org-babel-variable-assignments:shell' is a worse variant than copy of
the whole function body?

I didn't realize that was a dependency. I now use that function. This
also means that arrays/tables/etc. are all supported by :var, although
not in the default screen ":cmd sh" because sh doesn't support
"declare", but it works with ":cmd bash".

+           (var-lines (org-babel-variable-assignments:shell params))
            (socket (org-babel-screen-session-socketname session)))

I believe, it is safer to define `org-babel-variable-assignments:screen' some way: alias, substitution, function that calls `org-babel-variable-assignments:shell'. I am unsure which variant is better. I see a couple of callers for specific language in ob-core.el.

I can not suggest anything specific concerning sh vs. bash. I have never tried to pass tables to sh src blocks.


Reply via email to