[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Can arithmetic evaluation trap more than just division by zero?

**From**: |
Greg Wooledge |

**Subject**: |
Re: Can arithmetic evaluation trap more than just division by zero? |

**Date**: |
Tue, 6 Apr 2010 07:49:50 -0400 |

**User-agent**: |
Mutt/1.4.2.3i |

On Tue, Apr 06, 2010 at 01:29:28PM +0200, Roman Rakus wrote:
>* Is it possible to add more traps to arithmetic evaluation?*
>* Repeated by:*
>* $((2 ** 63 / -1))*
>* *
>* Actual result:*
>* SIGFPE (not catched)*
>* *
>* Initial report is https://bugzilla.redhat.com/show_bug.cgi?id=579622*
Hmm, I don't get that.
imadev:~$ uname -sr; echo $BASH_VERSION
HP-UX B.10.20
4.1.2(2)-release
imadev:~$ echo $((2 ** 63 / -1))
-9223372036854775808
arc3:~$ uname -sr; echo $BASH_VERSION
Linux 2.6.26-2-686
3.2.39(1)-release
arc3:~$ echo $((2 ** 63 / -1))
-9223372036854775808

**Can arithmetic evaluation trap more than just division by zero?**, *Roman Rakus*, `2010/04/06`
**Re: Can arithmetic evaluation trap more than just division by zero?**,
*Greg Wooledge* **<=**
**Re: Can arithmetic evaluation trap more than just division by zero?**, *Roman Rakus*, `2010/04/06`
**Re: Can arithmetic evaluation trap more than just division by zero?**, *Greg Wooledge*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *Dr. Werner Fink*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *Andreas Schwab*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *Roman Rakus*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *Andreas Schwab*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *John Reiser*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *Roman Rakus*, `2010/04/06`
**Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?**, *Chet Ramey*, `2010/04/06`
**Re: Can arithmetic evaluation trap more than just division by zero?**, *Roman Rakus*, `2010/04/06`