From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yItXMYJ+gWaQeAEA62LTzQ:P1 (envelope-from ) for ; Sun, 30 Jun 2024 15:49:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yItXMYJ+gWaQeAEA62LTzQ (envelope-from ) for ; Sun, 30 Jun 2024 17:49:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=MpIr0qJO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719762562; 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=m3UKLMUgKL/ArIo8Bfp1X30VlnPOjLYzagnHE0eJsIs=; b=U0C+J83ozIw5/iq/bdLZLgYYW586aWJSv2FICUbVsWlhyWwu2ycM8qXiFg4xnn0+Sjjy9Q TbhkJqodmm/caU25GZM5z3zQSPf1nZB5UsbQc18LmCBA5yizWlMY89AaTL3pMiGMXuReKy bH/BLjgtiJc7K1GNiiHKMq9efjuOv5hkB9U0oTzvVeTuy/0OsMnkT8ZqJw43XO0me3A3i2 pBBETmCzHf8RSoLW4LGq11x+U9w7IO8jfJ5stQOPK7LoRYoCb4mlwC418TmcaTVuuB4xoX SFAa2UNQ1fVcMy3y8/Wz/KK5B+iYYKGonY4R9vjG8UtjkIG//GFFwvl240tThw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719762562; a=rsa-sha256; cv=none; b=FKMO9VcL3VI74bIIboWZ1K+uR0WQdTin23aqPN/vNOpF3dL+nBB2NhVUbdvw7bhqi8t2IQ XKUTL4nizai5eTllFxk/bsQlife+qXRY2/qVJiJu63W1nJJyRs0kRC1/Yx5NdMCkFWLpi6 Hi+4jaYwEnJifgWwQ1H14nFPa0j9kBpu/p14B7l3GdjdYGypV3vEGekhNMnXsHdE7veqYx nuiHEhkp4zPWkO1m4A9cmjLID5zX1zwM8WNkp5TfHcuFtaS5wqgNO/hSTjcXj1j0V4RlDz 3ZWjf+RQaR7LZhTIzvKnvDaJmH/OHrrx63M/Wr6sUP8ySfpS9Ohb4ojtJ7Palw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=MpIr0qJO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" 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 7CF256F91C for ; Sun, 30 Jun 2024 17:49:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNwmy-0006tJ-21; Sun, 30 Jun 2024 11:48:28 -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 1sNwmw-0006t9-1t for emacs-orgmode@gnu.org; Sun, 30 Jun 2024 11:48:26 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNwmo-00053E-FU for emacs-orgmode@gnu.org; Sun, 30 Jun 2024 11:48:21 -0400 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52cdb0d816bso2134335e87.1 for ; Sun, 30 Jun 2024 08:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719762495; x=1720367295; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=m3UKLMUgKL/ArIo8Bfp1X30VlnPOjLYzagnHE0eJsIs=; b=MpIr0qJOfmCJSHr1WWDCjXFPQtwXxIbQkL49InCRfrReZCElMQLwgEvBfaFJck0z5g puX8d233tsdqyRRf2cQmTdAj2n/SYBhr4tnAeW0IhcmfAUP2Yy93VBEn8prKnO17qRHq GO2XEa4eHYOvs+iW9mZZ9f4EDAJeT8WBsYbBS5shpKgWHYXiw3Yad3NIEL/Rpw4mGmKt taNTkK04Grmk05joHLBMyK9fymQd6Imw/fzoKfQEWqRQfisLimTMj8RQqdWuQgZtVVxi CILYNp9ekobAyPiymjMoOgN11DGP4H2Zb+9xhtzk5Z+Sl2w2PnyRjTGVi4i04hSnFju2 cBbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719762495; x=1720367295; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=m3UKLMUgKL/ArIo8Bfp1X30VlnPOjLYzagnHE0eJsIs=; b=HrG9Wjnz/PR4i2vt8YOEnk0+K6MjJKhg395FPtjADmS6fOttn+KDn6hC2pfPAzQCRE 4x2SJObOgNbR/JOCsVVFADLQN0Ude1djHv3sZdnYj3jfoH7pwXsf21B6YrMZb1kmcBu9 waA1UJ+KzWWa5w2+xiUNHLsDp8bumSx8QuojAaExVvD72EMIHAOylLCZYFsGwVCqYGQc 5o8iESVXbsrpVTST9VbMh0pPiecjSaalUQBXxwCjOqZ7+3EjYqQhjHfg/NcIEDlpobDE xIXl0WBl6+PFF2Govobj/9zGC4mOvtcS7mOySRwvgI9/ireOnnySdap306iTG2NiHKLv zGRQ== X-Forwarded-Encrypted: i=1; AJvYcCW4zAUKVkwqanrpV40qFI8bolzZ/31DHRksqUbvVT7xyr+FzXdZD0cH19nHBLG/fgg962dWOiO1QfDPCcgd81KR+ICgadY= X-Gm-Message-State: AOJu0YxMY/nohWDU72x3eXgXzxrvqermfVrcnfMx8vsA1m+BW2+D5nOi whdblpKpZHt7bPrZLeocEo0fq93oc1y6QyxCFuLN1vt9/AtyvA6QdWTFlKiq X-Google-Smtp-Source: AGHT+IEkHjFbj3jP0XJXfnQQ6zCxaQ/mP49LO7tS8QW7qYhdDmS2Q/k3ZYIVp4mCXg+oEJICEktzuA== X-Received: by 2002:ac2:4c32:0:b0:52c:d76c:9f43 with SMTP id 2adb3069b0e04-52e7b92f321mr1770706e87.29.1719762494807; Sun, 30 Jun 2024 08:48:14 -0700 (PDT) Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-52e7ab37ceasm990081e87.245.2024.06.30.08.48.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Jun 2024 08:48:14 -0700 (PDT) Message-ID: Date: Sun, 30 Jun 2024 22:48:13 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bash source code block: problem after ssh commands To: Ihor Radchenko Cc: Matt , "emacs-orgmode@gnu.org" References: <25912.63830.726070.953843@gargle.gargle.HOWL> <25916.238.191509.652552@gargle.gargle.HOWL> <653f8a93.050a0220.f2202.5816@mx.google.com> <87zfzr2ejj.fsf@localhost> <18ba5e231e3.f989cde147196.3154436412643995109@excalamus.com> <875y2e2b9y.fsf@localhost> <18bb07473e2.1007b1565819307.6938164403009000496@excalamus.com> <877cmr2ke4.fsf@localhost> <18bb5337346.dfcd5ebb1139895.801408740607633332@excalamus.com> <18bd3d38ff3.115b786cb2560022.7704006411630399228@excalamus.com> <87fs169h7f.fsf@localhost> <18bd984270d.1048050a22954105.2819987720224062869@excalamus.com> <25942.29051.701153.391260@gargle.gargle.HOWL> <18bd9ea2f7b.b77346232985684.5614027527324280790@excalamus.com> <871qcod9ad.fsf@localhost> <18bdf538f2f.126bad4763316098.8581777358227217138@excalamus.com> <18be3214fb5.c07a71b73414174.856693588849825524@excalamus.com> <87frsu1yhc.fsf@localhost> <87y16m30xf.fsf@localhost> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: Ihor Radchenko , Matt , "emacs-orgmode@gnu.org" In-Reply-To: <87y16m30xf.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12a.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 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-Queue-Id: 7CF256F91C X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.27 X-Spam-Score: -5.27 X-TUID: MwFjavRorFOu On 30/06/2024 22:28, Ihor Radchenko wrote: > I do not see a great benefit of re-implementing session support via > actual terminal. (I think we agree here). `shell' and so comint allocates "actual" pty. I expect that bracketed paste is just some escape sequences delimiting pasted text (fcntl calls are less probable). The obstacle here is TERM=dumb. I would be OK with just documenting that ob-shell blocks differ from interactive sessions and some care is required. It is you who want to provide experience close to interactive sessions. There is a chance that some shell built-in command allows to get behavior close to edit-and-execute-command (C-x C-e) that, unlike "source", echoes input. Currently I have no over ideas how to avoid interpreting some lines as input to earlier commands (and at the same time send some lines to stdin of commands as it would be in interactive sessions).