]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Fix bugs where the value of arithmetic expansion$((...)) was trucated
authorstefanf <stefanf@FreeBSD.org>
Sun, 27 Apr 2008 20:25:43 +0000 (20:25 +0000)
committerstefanf <stefanf@FreeBSD.org>
Sun, 27 Apr 2008 20:25:43 +0000 (20:25 +0000)
commit748190668b828b5dd9ec08b71778809485574548
tree11138e069de52df3f7ce8baa2e116d04a76e2a23
parenta8a24642d3fa21822c6e56e1edc27cc6033113c9
- Fix bugs where the value of arithmetic expansion$((...)) was trucated
  to type int.
- Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all
  currently supported FreeBSD architectures).  SUSv3 requires at least type
  long but allows for larger types.  Other shells (eg. bash, zsh, NetBSD's sh)
  do that too.

PR: 122659
Submitted by: Jaakko Heinonen (minor modifications by me)
bin/sh/arith.h
bin/sh/arith.y
bin/sh/expand.c
bin/sh/shell.h