From owner-cvs-src@FreeBSD.ORG Sun Apr 27 20:46:46 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65F40106568D; Sun, 27 Apr 2008 20:46:46 +0000 (UTC) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1018FC1E; Sun, 27 Apr 2008 20:46:46 +0000 (UTC) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3RKkjmI002683; Sun, 27 Apr 2008 20:46:45 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3RKkjnu002682; Sun, 27 Apr 2008 20:46:45 GMT (envelope-from stefanf) Message-Id: <200804272046.m3RKkjnu002682@repoman.freebsd.org> From: Stefan Farfeleder Date: Sun, 27 Apr 2008 20:46:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/bin/sh arith.h arith.y shell.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 20:46:46 -0000 stefanf 2008-04-27 20:46:45 UTC FreeBSD src repository Modified files: bin/sh arith.h arith.y shell.h Log: - 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) Revision Changes Path 1.12 +5 -1 src/bin/sh/arith.h 1.22 +13 -9 src/bin/sh/arith.y 1.18 +11 -4 src/bin/sh/shell.h