From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4HUfJpJIo2RrTwEASxT56A (envelope-from ) for ; Tue, 04 Jul 2023 00:15:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YGEYJpJIo2SjWAAA9RJhRA (envelope-from ) for ; Tue, 04 Jul 2023 00:15:46 +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 07E992D72C for ; Tue, 4 Jul 2023 00:15:46 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="dBw//Xhj"; dmarc=pass (policy=none) header.from=posteo.net; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688422546; 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=oSUXZBdw+N9tdh0TDdFv3/Z4jQKu6EXaW895HmhVNqM=; b=GRAnlMWduPE9FSs+vQL4xvlCJ4V8SzWPzgqGIHUkQ2xh7LWhthZc1GVMoD1ypwUCFAz8y9 hdw+R2iVlZjNwv/LZa3pBqMg4NtquKo7WHLmzFkGoGhLakZ61mz1ugbJoYMApyol6D+q+M xN4c97ZtOKQm+LbAK2XhwmrW5GlcC9TxLSLmj/JrWMXFCEmbxbO6iaUZHXwxhkavQUVhce +q1ZVKRHBYdTezqqFqT0COcCPOVqlUdvWQxCbnmzNnE0d51DM2HaHDJQ3QV9I1jYsfLhFj PuHcRn9bWKZTygpE988yglZ3Hplihs4Z/IVaz5YHzF2OI6XJ6Q8zznqu+opLdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="dBw//Xhj"; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1688422546; a=rsa-sha256; cv=none; b=EygDwOuvbgKmuUfG6uGLqmZpLOyE/hTletddNZh/6QaicEooqpz6r5EeI/tR348faSifj8 HSClT0syoX1yLKPUuLbtcGh6eKjeGuzl8K/0CIB3fjR2kFPp87Gs5OeXqU+e4yjvZm+SD2 hzbmOM23i2b7820uv8v1O6m3HGcmfdfJ0NDyg+3keT1luR4GGQeZHfuJ3ofECXdU+5n/Dn OsYZIaGbeSudb2Z76Mb+S5/s4rZUJX5TpkmQwwrRt6Ogob2+gZfN6Ssdt+hIG5FsyE9sqC x90ELafW2PgnwtMeg5vAskntPhNisN6Y0zRUZyS7jIf9KhEuWXJ683681ZMcAQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGRp1-0005gB-GU; Mon, 03 Jul 2023 18:15:03 -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 1qGRoz-0005fa-63 for help-guix@gnu.org; Mon, 03 Jul 2023 18:15:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGRox-0006aC-53 for help-guix@gnu.org; Mon, 03 Jul 2023 18:15:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 62819240027 for ; Tue, 4 Jul 2023 00:14:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688422494; bh=oSUXZBdw+N9tdh0TDdFv3/Z4jQKu6EXaW895HmhVNqM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=dBw//XhjduofwVUL6hC3ogRMHEDkIcjlOHyTGTAtD9J1iRDb5KOAMVCaAyC/2DMWO Xu5PdHW50NaoSzHlVszGzH/TLmFdp4AQzkeEnt5MBEE9Ceh6isOaBBHtGKZ9eliGyW MKKsz86H7QZFvH0GGSdVJaBrGbLcVVb64xvpZAkIQ9XP3fB5EJ70fYNE66VknmyFIC 0/SRTRPqptaiyYYlqefk/xdsnfOios9k6XHtUjO1Hl5nY6H5i8PYAp2t3z9EOALixn 13pEuHFvpi6bNW05j06iPa9KG8PQ+9YM+f9OTC0ZeLKRL/SAIDh8p93uyz1yFaT6rA J3shpfcRb1Khw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qw0bK0Ykdz9rxH; Tue, 4 Jul 2023 00:14:52 +0200 (CEST) References: <87lefy2ne6.fsf@posteo.net> <87ttumdt63.fsf@rdklein.fr> <87cz1at0pi.fsf@posteo.net> <87cz19e83y.fsf@rdklein.fr> From: Kyle Andrews To: Edouard Klein Cc: help-guix@gnu.org Subject: Re: guix shell readline issue with R Date: Mon, 03 Jul 2023 21:55:23 +0000 In-reply-to: <87cz19e83y.fsf@rdklein.fr> Message-ID: <87mt0ctzfo.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=kyle@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=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: 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 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.74 X-Spam-Score: -6.74 X-Migadu-Queue-Id: 07E992D72C X-TUID: qdab9OtPiAkJ Edouard Klein writes: > 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. Thanks, Edouard! Your script worked perfectly just as you described. I was sorely missing that `set -m' call and passing true from the bash function. I also really like your idea for the shebang line. Best Regards, Kyle