From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2LChArKAomRxfgAASxT56A (envelope-from ) for ; Mon, 03 Jul 2023 10:02:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wAGqArKAomSOHQEA9RJhRA (envelope-from ) for ; Mon, 03 Jul 2023 10:02:58 +0200 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 82A273131E for ; Mon, 3 Jul 2023 10:02:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGEVi-000665-Tx; Mon, 03 Jul 2023 04:02:18 -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 1qGEVZ-00061X-Mu for help-guix@gnu.org; Mon, 03 Jul 2023 04:02:07 -0400 Received: from sender11-op-o11.zoho.eu ([31.186.226.225]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGEVX-0002Gk-Ff for help-guix@gnu.org; Mon, 03 Jul 2023 04:02:05 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1688371318; cv=none; d=zohomail.eu; s=zohoarc; b=MBNk3D8XUuTDQ4fT3Cf/PLZi5zACkxu6GtI4wkMbjfIxeaIjuFbwrUMflecWPjWUymoiCtAv9NB2qIgPldhn2eWgJtnGiDfw48O9lued9LuuTXsc3cmrZUT9sQq4MEEAN2jYv9DmRnFRXbo3NQ5M5A0BpAXeVMluQx01n191lkE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1688371318; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0fJ9e9QySaiaEsCSBbnd8ywMlFiNb35QU8rWdE/3Ezs=; b=BLE8xuAoeCEmi/mVM0CdeJoFjF0TlmZfEHn1mMoDBn/G9713ezVoBMZ8+7FRIOSQRvuoR7ej5NhvN7g9Lf1Op6iUsp8jL7reCO5xrXFoyAn96yuGEZGj+AT0C3BJ8HEQbNd/GZ2AS2UxXzWWQMHzXybHwvyImMFvHXMUVsHndZA= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688371318; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=0fJ9e9QySaiaEsCSBbnd8ywMlFiNb35QU8rWdE/3Ezs=; b=MQDxO3CakKrzxlcuVafQ0gnu29HiMEIRBgeixKCSaDA+m3qIzvgil+iK1MXCsC6z dawsyw4Po2V8tfc//ceajZqpyTC/yYWaGKW02ADN26Kp+Y99GwSkvIqVMiIqn5R3L7p /MQtNZoW9wsb9BFZaZEK8EtjvOG1qr6eLm7erRPsiix1Xd6d4cP4llXJyuKB8YrK/Pm BZpW0a7IUdBYCPAl59F64f95FNJGwUn70GNRCPJ3ZWT3fbG7GHEOK79/eiapMjiA0tY JsHFDh+HFPFn3O+k75KpjXWO94quU4PjzCnkTpZUR1vABHh2Ry1Ai8X213MD0/J35n8 7LneBCjzyA== Received: from schwarzy (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 1688371314458683.4713591777233; Mon, 3 Jul 2023 10:01:54 +0200 (CEST) References: <87lefy2ne6.fsf@posteo.net> <87ttumdt63.fsf@rdklein.fr> <87cz1at0pi.fsf@posteo.net> User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein To: Kyle Andrews Cc: help-guix@gnu.org Subject: Re: guix shell readline issue with R Date: Mon, 03 Jul 2023 09:58:15 +0200 In-reply-to: <87cz1at0pi.fsf@posteo.net> Message-ID: <87cz19e83y.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=31.186.226.225; envelope-from=edou@rdklein.fr; helo=sender11-op-o11.zoho.eu X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688371377; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0fJ9e9QySaiaEsCSBbnd8ywMlFiNb35QU8rWdE/3Ezs=; b=sLCqpi1CwMalPbbyqZjLLATn0piO35h0LeqJNLYtlaMPCG068C7z81J0e70/xMwGxXUYwN s2sgTRZ+/PSUhF+82j+UDrFHaZPGKV1RckNvKbio+iVhkhbAnszKrxyMirVTVFKAgAs1sS ZtVIO/P2JJhLtIjdYc2fLqsaBalWhyGua83vF4swe3gE504glc4QpviWZb1OuVfsqJYdxG w7Nw8dZyxKlVpN+HP9GBf4sX7SqxZKMZGlsNi9PvoSgDzM1G8wTM0dH7ejWfCcfFvCWHHt LVbefj6n6E92w6xPCFAOFFvWaNxDbp6vEqBIBet4DzpkDdJO4XFvNQSZ/TztUg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=MQDxO3Ca; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1688371377; a=rsa-sha256; cv=pass; b=GdqeXTnpPatudGeVyELA8m7g+s1IXvf402paEfFDLjJrG/ZJTw1eoSXDC233JVMZd2PkTz FhtH84rRYJ0Nf38wuHs0bTPhnKKPUgJ6UW8eNCGVdSae5xo4SA0pyePOt+Evj6qlPp+jB7 6P8ZgiSifTJCxk7LcGVL9k1oKV1snnpmhr+IfA/4qpRZIW7eY3Moe3rrHnU2CCsaSpDrqk Fcnxgkqoaw4YBeZnZpjDhHNkXn4W/glHL8P12vuqXkKBdoGGQALb9IS78Tt3fCq1KxTFeA eu9mMJZz99oaLiaYET1a8XJGoqMI2Tru49PSJ+QcIZ7uq4jGmOOAQKIOCaWaOQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=MQDxO3Ca; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; arc=pass ("zohomail.eu:s=zohoarc:i=1") X-Migadu-Queue-Id: 82A273131E X-Spam-Score: -4.76 X-TUID: 5hhxXyIozcYf Hy Kyle, Here is a script that restores the ctrl-C behaviour of R, whithin a guix shell. I must admit I don't exactly understand the finer points of why it works, but just trapping SIGINT in the script is enough for R to behave. My intuition is SIGINT is sent to the whole group. The script interrupts R. If we trap it in the script, it does nothing. R gets it as well and acts on it like you expect. Let me know if the problem still persists. Here is the script: #!/usr/bin/env -S guix shell r -- bash set -m R& function ctrlc(){ # Doing nothing true } trap ctrlc SIGINT fg Cheers, Edouard. Kyle Andrews writes: > Edouard Klein writes: > >> Hi Kyle, >> >> >> Running >> guix shell r >> >> and then >> R >> >> will get you the C-c handling you want. > > Hi Edouard, > > I wrote another reply, but forgot to comment on this because I feel like I am missing something here. > > It would be really convenient if I could just write a shell script like that. > For me the first command hijacks the execution so that the script cannot invoke > R. Is there a workaround avoiding -- which would let me automate that with a > script? > > Cheers, > Kyle