From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WJECLe0g8GXKowAA62LTzQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 10:31:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WJECLe0g8GXKowAA62LTzQ (envelope-from ) for ; Tue, 12 Mar 2024 10:31:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GG+aDxw4; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710235885; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3s5xbnnnXZad+6znYZ4BkA8DUDXKwjDc7NyCFvRBnsE=; b=jm4txk50bi1RrLsMu18UwwoENV5/sCfH7bTHz9ELx+HVYh6FFhpHENpTIR3E60vGx1+J4e mFVzC9TRS/idZWBU223TN/35j8miQ2s/wcUgn81lj7UHxwIn0W3E/rrGYUEZrDomJhPZhg JtCz7mWqGKkotVY6GxgPDLSwS7uEg9HdkNOkozurk5AF6Fui7zdWsOkDXdP0mja0MmTUjn K2nrjxM91yE2FfhXWp3w5Zm6qYfV8pW5D6fUI7RLKAYcukNzLtvjYKA8iZerOOmQwlBfjQ I62ObBkPTBzC+nKlA+YY4TinXUjRvHfCYxcFH3246cMumYgbw6rcUimEHitmhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GG+aDxw4; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710235885; a=rsa-sha256; cv=none; b=IcL9cWf/c7T+CEJjSDMdpZtpjtblSQS+G40kjhBqsmOqRTXVDBZ/+Qs6svjnq+Y2yCTEqb 07tZN1m2vBtSL92BkRzGeSNhAyti17DTlY2mBbufvnmFGyhfaX1PNqEcaC/h2Qzh4MFaZ7 vXRw+wRRu1LeqTZxPFQD9sZJRWKnYOxnMQlTH5cjyi0ae6nWl72H851OZG2hXRXJaAV40v hcpvDGeiyRI8dBKClrnjrRgMlcTP5x+NG+i51FUs+cvjikfK+SKLr448W1oA2KbZ+trLde esfSJB47LoL9GzbBcvbHat3iIKfyfVjJMtKhIa54VlSM42l6b9pv0pbBB3hQVw== 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 80DFE3F539 for ; Tue, 12 Mar 2024 10:31:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjySz-000613-F6; Tue, 12 Mar 2024 05:30:37 -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 1rjySv-00060O-8C for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 05:30:33 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rjySt-00042g-AA for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 05:30:32 -0400 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2d28387db09so56458871fa.0 for ; Tue, 12 Mar 2024 02:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710235828; x=1710840628; darn=gnu.org; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:from:to:cc:subject:date:message-id:reply-to; bh=3s5xbnnnXZad+6znYZ4BkA8DUDXKwjDc7NyCFvRBnsE=; b=GG+aDxw4Z/K+4mMfomYbi9x+IlaMRn/Eg119bVe6EJEiIJgEBbQCtL2eoH5JtkPGAP DxuTxIMbslSgthhKpu3rfpSrAXYt5AHtl94tkdxiCCc2xl7Cnst4rLwjTWNYxWhsjP8D 3b5Jg3GLNAzon834D6AM8MqvQem6IUCW98MkccFFPQeCo0K/imwtifNyclYGVlWKbXrH drhk5hvVjO+Jm8IpgbgnKpJTsZoFWHtfISwVQCfJH+wgYIzMwKxFBdcJ2RAjwPiZAmv+ g369cj6pumhEiTheersMgjgiydbTihOsYO3cG7ZGLwiqLRFZQ+FDe9kr9O+48uMzJnQZ U4Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710235828; x=1710840628; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3s5xbnnnXZad+6znYZ4BkA8DUDXKwjDc7NyCFvRBnsE=; b=TLG6oodUyTwRrVTV5VOEl6HRlvo37uCQD6Osn3wypkhTBh8FZnbzNrLt8MoILirn14 o2pyv3Eq/nkvdMV54DV88TLz36C9ZptRkD4yxWImy//1MqOCm/aqd+KleRAWmCkvg2dL DXheWbb37JTAsFA76V68iXHisKFqblfAmINpsYoWmJdKn55JoDBqk4uALgy1Wriqnflc 6mK25Ip7QOjhOdTV1FAyAmNYpjfFVV6ZH6tKMQ7FUbTRCsU8C4c/Hav8e1WbQWnVFgYj CUPifagNWllIEBZ/184+MHD+qOvazIFBjKkhhwJ5SvaJdypDC+9q5oZhX4N+BhYzgj79 isRg== X-Gm-Message-State: AOJu0Yzmm+HN01td+KJO+tn2tjRXbCpOK/kKWgbIDTb8lbtyizhBaaXX bJSneaEVcaiSMk1R7rO1V+brCCScPVrMc3nx65sp/fuW7x/AUDVtks17YlPq X-Google-Smtp-Source: AGHT+IEmt9SJURoizcO1g6VWVzLos1Uso+krBOtHjBEQdGwJ95gYFh8rZRc7vwhaai+2zR9RTwRdvA== X-Received: by 2002:a2e:a313:0:b0:2d2:dac3:90f with SMTP id l19-20020a2ea313000000b002d2dac3090fmr5393725lje.52.1710235828086; Tue, 12 Mar 2024 02:30:28 -0700 (PDT) Received: from localhost (78-107-235-32.static.corbina.ru. [78.107.235.32]) by smtp.gmail.com with ESMTPSA id s15-20020a05651c200f00b002d43b9a382bsm926802ljo.88.2024.03.12.02.30.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:30:27 -0700 (PDT) References: <87plw3jh5c.fsf@gmail.com> User-agent: mu4e 1.10.8; emacs 29.2 From: Ilya Konovalov To: emacs-orgmode@gnu.org Subject: Re: [BUG] ":sep" header argument doesn't work in ob-shell [9.6.21 ( @ /home/aragaer/.config/emacs/elpa/org-9.6.21/)] Date: Tue, 12 Mar 2024 12:27:46 +0300 In-reply-to: <87plw3jh5c.fsf@gmail.com> Message-ID: <87il1rn6fn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=aragaer@gmail.com; helo=mail-lj1-x22b.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-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-Spam-Score: -9.55 X-Spam-Score: -9.55 X-Migadu-Queue-Id: 80DFE3F539 X-Migadu-Scanner: mx13.migadu.com X-TUID: FevRK15cPYvQ After some usage I found that this exact patch breaks `org-babel-import-elisp-from-file's own separator detection. It looks like it's better to leave it as `nil' unless specified. Ilya Konovalov writes: > 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/)