Re: IGNOREEOF is ineffective when holds a big integer
From:
microsuxx
Subject:
Re: IGNOREEOF is ineffective when holds a big integer
Date:
Wed, 18 Jun 2025 05:32:57 +0200
64 bit , as cpu ..
On Wed, Jun 18, 2025, 4:36 AM shynur . <one.last.kiss@outlook.com> wrote:
> ```
> INT_MAX=`echo \`printf '%u' -1\`/2 | bc`
> IGNOREEOF=INT_MAX
> # Then I typed C-d, bash exited...
> ```
>
> ```
> IGNOREEOF=127
> # C-d, C-d, C-d, ...
> ```
>
> Why doesn’t the first piece of code work as expected?
>
> In Bash, what exactly is the INT_MAX that I can safely use anywhere?
>
> --
> shynur
>