bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IGNOREEOF is ineffective when holds a big integer


From: shynur .
Subject: IGNOREEOF is ineffective when holds a big integer
Date: Wed, 18 Jun 2025 02:31:06 +0000

```
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]