Importing "quoted" strings in `org-babel-import-elisp-from-file' (was: [BUG] ob-shell: results missing leading quotes)

2024-05-01 Thread Ihor Radchenko
Max Nikulin writes: > On 29/04/2024 18:58, Ihor Radchenko wrote: >> >> The nested "..." are stripped on purpose via `org-babel-string-read'. >> Although this function dates back to R output processing and I do not >> fully understand why stripping nested quotes is useful for all possible >>

Re: [BUG] ob-shell: results missing leading quotes

2024-05-01 Thread Max Nikulin
On 29/04/2024 18:58, Ihor Radchenko wrote: The nested "..." are stripped on purpose via `org-babel-string-read'. Although this function dates back to R output processing and I do not fully understand why stripping nested quotes is useful for all possible babel backends. But that's a completely

Re: [BUG] ob-shell: results missing leading quotes

2024-04-29 Thread Ihor Radchenko
Matt writes: > #+begin_src bash > echo \"\"1\"\" > #+end_src > > #+RESULTS: > : 1"" Fixed, partially, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=89c68683f The problem was auto-detection of table data - the algorithm used CSV parser as a fallback and ""1"" is a

[BUG] ob-shell: results missing leading quotes

2024-04-28 Thread Matt
While investigating "[BUG] ob-shell: :shebang changes interpretation of :cmdline" (https://list.orgmode.org/orgmode/18f01342a2f.124ad27612732529.8693431365849276...@excalamus.com/), behavior like the following was observed in which leading quote marks are sometimes removed from results: