[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix shell readline issue with R
From: |
Kyle Andrews |
Subject: |
Re: guix shell readline issue with R |
Date: |
Mon, 03 Jul 2023 21:55:23 +0000 |
Edouard Klein <edou@rdklein.fr> 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