From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cHHAHKcM8GXJigAAe85BDQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 09:04:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id cHHAHKcM8GXJigAAe85BDQ (envelope-from ) for ; Tue, 12 Mar 2024 09:04:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VoCm8unL; dmarc=pass (policy=none) header.from=gmail.com; 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-Seal: i=1; s=key1; d=yhetil.org; t=1710230695; a=rsa-sha256; cv=none; b=abbiJG/VmWMpvlkr8uCoZdUp4XFJ/j4pfa8DBjXqzlLqTSzRwOAzf3//nq0MhJH7vaqzTs WUDsrHoZYFa4LSZIPRARmdIhXLpq9cURKNeQ1OIpzkvdyBS8YkbI79uoml+o5/BuPjItNf hQNevMtWGFYAi7MhkN0WcIV3dkPaGoJTgnpq1Bjarnp2+p9icl2+zmP1Z7HPuyC9ERU49U 6dplawuVjfdw7PMUGMBQK/j5FFEUam55WoS5ONeKwex/MCi50p7SYaGhPk0LW7Kc0ThLqL MtxUaOMdgInD48uevzvhElKYi6L9+FwoR9ojDV74m/Vu9ouxx8VM8yZdznyY6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VoCm8unL; dmarc=pass (policy=none) header.from=gmail.com; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710230695; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FgjWo5m1IPmMwu/p3qUH1hxqAsm6yPeqnuWlyH3yOGs=; b=jh/t6ajGmaIA6WjoEoX1INPkvPB3TedibXHFQpFL/rGL+P4U13mkikWq8/21rUyRwEAfJV vxHlbk6eYFV2x6UKOR50Noah+06m/t8rbNiSgJZOLfzE/jUefIrsbuzfddq2r/4riytgBq tF0CdmmmpbK4UcrQTOaPlMP7jtuLivkI2idpc4/CaUUrvA/w3uVzz/bBY04JYKOHxKi99z 90eDiaQKMzcoYCgokOIpdeTDW4Nc6F1Fg3qE+B4cf8urm4Yy9pZDmL/lz6Fto0IC2O9uU0 adZAzgUBH6NBTNdi/APXDDVEoS2Bovjllg84ZXbu37mvH33an65uOFw/m4Fcsg== 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 55D7B68812 for ; Tue, 12 Mar 2024 09:04:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjx6l-0008It-G3; Tue, 12 Mar 2024 04:03:35 -0400 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 1rj36v-0001Jb-Th for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 15:16:02 -0500 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rj36r-0002Xx-6f for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 15:16:01 -0500 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5132181d54bso4398436e87.3 for ; Sat, 09 Mar 2024 12:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710015355; x=1710620155; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=FgjWo5m1IPmMwu/p3qUH1hxqAsm6yPeqnuWlyH3yOGs=; b=VoCm8unLdJ1WF/VkqDKZEjfQbbW3EZndfZ99BAXYab3fLdXBsC6aO4TWwiIySmTclp h/gaklky5XoSg8aiD5X+IXk/GmdruRzyHUFm57kL+eymYj3ewYSPhtuYTpOGAO0jn3EY UUFrT0CdYJeLqbf/ahDepOKTr33CGu/6vnBp6jloSuRNX0gXgdECUTtieKb5uZJQVFN8 CwlxtYvmjhxjHluoQqKUq5VnTtv9ZQAOPXvgED64N7i7WKAswBuuQV5VSEhlMSE4zUeF CWxdjUY0s/barSDEdTlJPrERyernSKqntyyHHMTme/n320dW4ivebQkdJqSCI7wzXRGa PEpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710015355; x=1710620155; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FgjWo5m1IPmMwu/p3qUH1hxqAsm6yPeqnuWlyH3yOGs=; b=iDYc8r7CZtC96LCNOKE144/D4Tnbcyy6kAz3E1vpMoQ9NG8CwwLjKFr5KjjG9X5ASX K0ZWRhbH1UlgqX0SLrcUoDtzGAqyckVBqD8xeaO0P0/BhGHQQhLOhqJ9SsUoDBSGnfFj rgc7ArsQmpLnCUkXjagP8oLjA+BxaDou7B6SN1hK1RKUTuNJhFJttKv0GyQ37Ku0brUN G1eZ78+0FXUdTE3/Yl6NUSEy2remSPMm2w+M+S4nSEiCnC04rHpHjYoJImI5ird+ReKt xp2QGC4OFB6bGtHMBx4nWMhw+tjOspiytWD9CpvKMdAJ2VJME6qos5AkWqR2Bxov+gW6 jUvg== X-Gm-Message-State: AOJu0Ywvn1iIUTFMontY14gxz4SU81uTu9qHunjLx86rGyxXg81mr1ml kmzH/QyRkpp9zOqltNzONfodbkoLtKPACOyLau/SJkZFFqwrhy4gKIdVTnmf X-Google-Smtp-Source: AGHT+IE/sFqTLy1XuJ962rnylogkNoNope9TZXdU1w6t4cHsRfHHObhPZ6XMhyN5ZEA/UeDEjcPyIA== X-Received: by 2002:a05:6512:2315:b0:513:9d80:d9a9 with SMTP id o21-20020a056512231500b005139d80d9a9mr1376024lfu.1.1710015354742; Sat, 09 Mar 2024 12:15:54 -0800 (PST) Received: from localhost (78-107-235-32.static.corbina.ru. [78.107.235.32]) by smtp.gmail.com with ESMTPSA id p7-20020a19f007000000b00512ee143d25sm411245lfc.105.2024.03.09.12.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 12:15:54 -0800 (PST) From: Ilya Konovalov To: emacs-orgmode@gnu.org Subject: [BUG] ":sep" header argument doesn't work in ob-shell [9.6.21 ( @ /home/aragaer/.config/emacs/elpa/org-9.6.21/)] Date: Sat, 09 Mar 2024 23:15:43 +0300 Message-ID: <87plw3jh5c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=aragaer@gmail.com; helo=mail-lf1-x136.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 12 Mar 2024 04:03:26 -0400 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 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.53 X-Spam-Score: -8.53 X-Migadu-Queue-Id: 55D7B68812 X-TUID: aNC+AW4Icqti On current master using ":sep" header argument does not work as expected and records are always split on whitespaces. For example: #+begin_src sh :sep "\t" echo hello world echo test #+end_src #+RESULTS: | hello | world | | test | | It looks like the issue is in the org-babel-sh-evaluate function, where at the end it passes the result to the org-babel-import-elist-from-file function for processing. Replacing the code with the following seems to fix the issue: (let ((tmp-file (org-babel-temp-file "sh-")) (sep (or (cdr (assq :sep params)) "\t"))) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file sep)) Emacs : GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2024-03-02 Package: Org mode version 9.6.21 ( @ /home/aragaer/.config/emacs/elpa/org-9.6.21/)