emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt <matt@excalamus.com>
To: "Josep Jesus Bigorra Algaba" <jjbigorra@gmail.com>
Cc: "emacs-orgmode" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Org-Babel shell problems and crashes with images [9.6.1 (9.6.1-ga6c882 @ /home/joe/.emacs.d/straight/build/org/)]
Date: Fri, 27 Jan 2023 13:07:28 -0500	[thread overview]
Message-ID: <185f469bc2a.fc55ca06380761.1642772440504409571@excalamus.com> (raw)
In-Reply-To: <3d5a786c-5635-fcae-1ac9-8b329f703489@gmail.com>

 ---- On Wed, 25 Jan 2023 14:34:19 -0500  Josep Jesus Bigorra Algaba  wrote --- 

 > This is my first time posting to the mailing list

Welcome and thanks for taking the time to send us a message!  I love hearing how much you've enjoyed your experience with Org.  We love it, too!

 > 2- Org babel tangle for shell scripts seems to exhibit strange behaviour 
 > in latest build,
 > and it adds a strange BOM character at beggining of the script. This
 > makes it that the script is not runnable anymore. I can
 > fix this by manually going to exported file and doing a
 > =set-buffer-file-coding-system RET utf-8= . That seems to remove that
 > BOM character.
 > 
 > My literate scripts use these options, thought sometimes shebang as
 > =#!/usr/bin/zsh= :
 > 
 > #+begin_example
 > 
 > #+title: Joe's spin on openSUSE Tumbleweed
 > #+property: header-args :tangle install :comments org :shebang 
 > #!/usr/bin/bash
 > #+auto_tangle: t
 > 
 > #+end_example

I'm the ob-shell maintainer, so I'm most interested in your second point, the one related to shell things.

1. Your first point mentions that you've reproduced the bug in Emacs 28 through 30.  Is the same true for this second, shell/tangle related issue?

2. Does the problem happen with both bash and zsh or just zsh? 

3. Can you please give steps to reproduce the problem?

I'm wondering if something like this is enough to reproduce it or if you're doing something different.  (Note that I'm using #!/usr/bin/env zsh instead of #!/usr/bin/zsh because of how my system is set up.)

#+property: header-args :tangle install :comments org :shebang #!/usr/bin/env zsh

#+begin_src emacs-lisp :export no :tangle no
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t)))  
#+end_src

#+begin_src sh
  readlink /proc/$$/exe
#+end_src

4. Also, are you running into the issue when starting Emacs using `emacs -Q'? 


  reply	other threads:[~2023-01-27 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 19:34 [BUG] Org-Babel shell problems and crashes with images [9.6.1 (9.6.1-ga6c882 @ /home/joe/.emacs.d/straight/build/org/)] Josep Jesus Bigorra Algaba
2023-01-27 18:07 ` Matt [this message]
2023-01-27 18:47 ` Bruno Barbier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=185f469bc2a.fc55ca06380761.1642772440504409571@excalamus.com \
    --to=matt@excalamus.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jjbigorra@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).