emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix :var parameter for fish shell code blocks


From: Elias Kueny
Subject: [PATCH] Fix :var parameter for fish shell code blocks
Date: Fri, 13 Oct 2023 22:42:52 +0000

Attachment: 0001-lisp-ob-shell.el-Adapt-the-var-header-parameter-to-f.patch
Description: Text Data

Hello,

I found an issue with fish shell code blocks, in that the `:var' parameter 
generates a command that is not syntaxically correct. Fish uses `set variable 
value' instead of `variable = value'. As a result, org-babel throws an error 
when executing the code block. This patch fixes this by adding an exception to 
org-babel-variable-assignments:shell on the model of what it already does for 
bash.

Example of code block triggering the error:
#+begin_src fish :var test
echo $test
#+end_src

Best regards,
Elias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]