From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kA8ICAgT1GMpDQEAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 19:08:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KLolBwgT1GNHzgAAG6o9tA (envelope-from ) for ; Fri, 27 Jan 2023 19:08:08 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C18F7CB49 for ; Fri, 27 Jan 2023 19:08:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLT8d-0003lE-9O; Fri, 27 Jan 2023 13:07:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLT8a-0003hX-4Q for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 13:07:46 -0500 Received: from sender3-op-o17.zoho.com ([136.143.184.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLT8T-0000q1-LU for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 13:07:42 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1674842849; cv=none; d=zohomail.com; s=zohoarc; b=QyjIqjeZ+/g4o1fb7f+Zl5wgY37ruQGtL8F16e973Sonx8s8721vMeOrsmv49/lYn5pERw/XhAwsnxauTYlvv7r9JMTfjXy8FtPTkSZHGvxblx+jj4ROJ6Ucl+WO/GrY2cLeLQ7oTRAp7s6Dcoj9EYjchIR5447wBwTXCMul2VA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674842849; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=b70upHQrn7iq9+3x1JNbO+3eY0xore0w5yIRMx3641M=; b=GxKKHMAsE5SRdvOdgp07IPh5giOQaNKtuxgcBZwMbHhypyyOMlXcizqHzQOGSHKbJWNzlhdER8kMgGIxMwEM8hezHA4GpE4iMpcoymt9yOoJgcDneHADsZu2Ek2N95MzHMJsppKljd6rRBqiAmHhSenH5K/WJDP5mnupKF3y1Ms= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674842849; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=b70upHQrn7iq9+3x1JNbO+3eY0xore0w5yIRMx3641M=; b=X4Fs+EJwHC+6MJDMtbXA+5kZXjD3sCUwfJOaUDq2IoxEytOLmYdZu9yh1ZCOWHaF vp4UqKzJSEHjyHdah+QTtMonT4yzj5bCd1IPYRr+uvNarx35LrOvXeeJ3Mx37hLi3jt VokCuO847hXuGWPjgaxVdepEGsWeMSP0L6EbRIb0= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1674842848312818.6926763399946; Fri, 27 Jan 2023 10:07:28 -0800 (PST) Date: Fri, 27 Jan 2023 13:07:28 -0500 From: Matt To: "Josep Jesus Bigorra Algaba" Cc: "emacs-orgmode" Message-ID: <185f469bc2a.fc55ca06380761.1642772440504409571@excalamus.com> In-Reply-To: <3d5a786c-5635-fcae-1ac9-8b329f703489@gmail.com> References: <3d5a786c-5635-fcae-1ac9-8b329f703489@gmail.com> 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/)] MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.184.17; envelope-from=matt@excalamus.com; helo=sender3-op-o17.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674842887; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=b70upHQrn7iq9+3x1JNbO+3eY0xore0w5yIRMx3641M=; b=PgbogSmKlkJ5ygN0Nl43l7EhkJ7dsLzwK1IekuqF/FypCyEwF4Q2fspF/swFmyP4ckwkmM vA6ELjj82T4pjqfeVXW3dcP/gdn0bDFYB/3UfSe56ZPKRU+XrdIczXd/eMyTAB0JCRaPU0 5sw2T3lMfrDAiIy3eckrITP9GVd6CN1kjKKPUNTNxI5yfsPjHULz/nX71bRAe3Wk5JIM/+ 3NoYu+9wuF+aUuElZi/Gdco/v6ev6pHYhbmfdBG3mE2vFpJuev72a19oeZ4asK2ggUnA56 C+cL3fghCMD6ZVPK68JkkkQ0iRYvFiq8Elc4CfKOkiBEG6qsYN7xf0z4uyuaWw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=X4Fs+EJw; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1674842887; a=rsa-sha256; cv=pass; b=QnHW5AVE+LPRn9GZt8LdkHePKen4UpuKyb8TXau6g8DyPUkiWtahujqODi4k6Uk8S6OOgg redNGNdFk0IAF++aKwlMLeiy6V2KTZyGqr+S52kn4hOcQAtmy71bCrXhtaUTReqsccOFyi MpgKvQyG6HJQkQ+t00yikdLqBy560Zjh0gErA+zQOy7TEGPShjBW2QLzL+ERQhZKmic4lO VYfKCwVTXI5Gf/lUTbYU8pmC1bPDYr7Nm6P5lZLosUf/o6FY5ljZua6leZcJbSRRWT8sLa 1xWKmd31r/6BscKQQtxpK7FVVintnnNwa8wbJFLw+EGTOsmgsJK9YEg7lWRbog== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=X4Fs+EJw; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("zohomail.com:s=zohoarc:i=1") X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.06 X-Spam-Score: -10.06 X-Migadu-Queue-Id: C18F7CB49 X-TUID: 3JFYxHapXknc ---- 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'?