From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uHD9FdKBVmWQLQEAG6o9tA:P1 (envelope-from ) for ; Thu, 16 Nov 2023 21:55:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uHD9FdKBVmWQLQEAG6o9tA (envelope-from ) for ; Thu, 16 Nov 2023 21:55:46 +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 315DA43411 for ; Thu, 16 Nov 2023 21:55:46 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=bGg+KmhX; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=2; s=key1; d=yhetil.org; t=1700168146; a=rsa-sha256; cv=pass; b=hQBeGRSXasETlj54wdeM6zgSM4y7via5Jy1beawXhI/msCMZPx04pw/nHSZSfHpHzHm+bV d/zHwtvI0mKgCS3CsQn5cVLE8Ea5kK/ArPHSRaisiS8ozhLBMVylecEOEe7pqeprHDqWUT wuB0j2gMm6cSBOzbWQoHo8ckUnH9AkABhFP76+c52o7yDv6cGWulxCyrH8/yPFHYIFOkby jFzn5Kym5o9QaWK4jGH2Jc99+kY4EZZfMlHgoFmrJlil1btSCFTGgYhlVm6BiG6kKh87CH O0xpCbik4cgXJfSXzMdPho3gGzbPK5CW2lmzgSQkI4dY9S5F1FjrTOhUEeQ5GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700168146; 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=A3xG7a4Cil4Gfj8j2lTeFRsPfGqStcnz60OEBQB1p2U=; b=OmL60/v/EVtqRL5hriPmvplisP5Mgpsqc70jZwD5sgrIZBvjra79+fZL8zuoBgRFqohv97 f0QpgeSgbH4S65fp3QYufzpuk2PKaggbLg+WG03HzcCjfRR1VJBN/zJ91jUbccLeXXWlD9 m3uFGvoBmok2FS+k1/UFDdWYsxgUQ8BwNvwwJ+br3WHhDHlTtllzg5xfs6boPdpGWQ5ma9 lsKrKD4gKRPL440W+QXcyJ+awQvNSZaA1mJY6rLbOn9UECJ+zzVuGVqkXf4343RvFTgplI sCDQ5u08z85/mBjQA/YntBMt9ylNxHVg+CH5fIJY/Iu70yfJ/3U0QE4GJAczKg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=bGg+KmhX; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3jO1-0003mr-Tz; Thu, 16 Nov 2023 15:54:53 -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 1r3jO0-0003mO-4P for emacs-orgmode@gnu.org; Thu, 16 Nov 2023 15:54:52 -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 1r3jNy-0004OU-FP for emacs-orgmode@gnu.org; Thu, 16 Nov 2023 15:54:51 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1700168087; cv=none; d=zohomail.com; s=zohoarc; b=bs8Y7YGUkPQ8vVaX1khtDuHuwGgvpKrTYvuLdRUrcrV6nWfDdQX64/aaaPRwTvFachjrDbmGjWzWOwarQ9shS/NDzFPm2caF2YivsKtGQ8qYVL9DKFCAfV4rBIb97kAakH4Mgs+ZbeNw3MbS8APDofbdKKPAzK8YrT8iJ4C5wlg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700168087; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=A3xG7a4Cil4Gfj8j2lTeFRsPfGqStcnz60OEBQB1p2U=; b=jBX7zn5scBwTyqA0X4h5D42suo0pLM7DnDVAPVdmiFo4czcilvI7QqWyhUjalW0r7jIYKxppqlouAxVMIr1R9oYy3ygC/QCXEnNLv/GngJUPixJqiAxyItv8kfTmSAw/9lccSKZ1wPWDnHX4F/x5S4HHte3G/e7/XH/ESdM+7wI= 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=1700168087; 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=A3xG7a4Cil4Gfj8j2lTeFRsPfGqStcnz60OEBQB1p2U=; b=bGg+KmhXxynGCAG6Xh0HlrOgAHOhIUc5gDfFnPNXo4oWsbqxBuKCZmk5J8lNwOXR 4aBS9vhMrQNeSVvdn1SvYp0rmJhAApAK2ZMr6meJcfMhs/DCUJ6P5DRi6uePeh1lfhQ /4R+RVYqKE9RNhoJ/GjYTRMXIPNVmRjYaExRuy+E= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 170016808539496.77894807561677; Thu, 16 Nov 2023 12:54:45 -0800 (PST) Date: Thu, 16 Nov 2023 21:54:45 +0100 From: Matt To: "alaincochard" Cc: "Ihor Radchenko" , "emacs-orgmode@gnu.org" Message-ID: <18bd9ea2f7b.b77346232985684.5614027527324280790@excalamus.com> In-Reply-To: <25942.29051.701153.391260@gargle.gargle.HOWL> References: <25912.63830.726070.953843@gargle.gargle.HOWL> <87bkcmlor9.fsf@t14.reltub.ca> <87o7gldb78.fsf@localhost> <25914.26693.101108.954656@gargle.gargle.HOWL> <87fs1xbis1.fsf@localhost> <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> Subject: Re: bash source code block: problem after ssh commands 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Scanner: mx11.migadu.com X-Spam-Score: -7.39 X-Migadu-Queue-Id: 315DA43411 X-Migadu-Spam-Score: -7.39 X-TUID: Nd8cbAni+Sc1 alaincochard alain.cochard@unistra.fr writes: > Yes. (So I think that explains the 'no' above.) Thank you for clarifying. > Anyway, this gives me the opportunity to come back to the question of > whether or not there is a problem with emacs itself (like some people > here thought), and if some message should be sent to some emacs list. > Again my argument was that the 2 commands copy/yank'ed in an emacs > terminal don't work as expected, while they do if the same is done in > an X terminal. Okay, I follow you now. Yes, I agree with what others have said, it's related to Emacs (probably comint-mode). It happens with M-x shell and *not* with M-x eshell. It's hard to reproduce with M-x term because term-char-mode doesn't allow copy-paste. M-x with term-line-mode doesn' t print "bar". > I guess it is not important for Org, because workarounds have be > proposed, but I think if there is a problem with emacs it should be > reported, right? I think it's worth reporting. I'm headed to bed and can submit it tomorrow for you if you're not comfortable with doing it or don't have the time. Here are the steps I followed to reproduce with M-x shell: 1. Copy the following two lines: ssh $USER@localhost "echo foo>foo_file" echo "bar" 2. Paste them into a shell (tested with xterm or xfce4-terminal) and press return 3. After entering the correct password, "bar" is echoed 4. Paste them into the buffer associated with M-x shell 5. After entering the correct password, "bar" is NOT echoed Here are the steps I followed to reproduce with M-x term: 1. M-x term 2. C-c C-j to switch to term-line-mode 3. Copy the following two lines: ssh $USER@localhost "echo foo>foo_file" echo "bar" 4. Paste them into the buffer associated with M-x term 5. After entering the correct password, "bar" is NOT echoed