From owner-cvs-all@FreeBSD.ORG Sun Apr 27 20:25:45 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CBC81065675; Sun, 27 Apr 2008 20:25:45 +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 74B278FC12; Sun, 27 Apr 2008 20:25:45 +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 m3RKPj5g001799; Sun, 27 Apr 2008 20:25:45 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3RKPjGs001798; Sun, 27 Apr 2008 20:25:45 GMT (envelope-from stefanf) Message-Id: <200804272025.m3RKPjGs001798@repoman.freebsd.org> From: Stefan Farfeleder Date: Sun, 27 Apr 2008 20:25:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/bin/sh arith.h arith.y expand.c shell.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 20:25:45 -0000 stefanf 2008-04-27 20:25:43 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) bin/sh arith.h arith.y expand.c 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.9.8.2 +5 -1 src/bin/sh/arith.h 1.19.8.2 +13 -9 src/bin/sh/arith.y 1.47.2.4 +3 -6 src/bin/sh/expand.c 1.17.8.1 +11 -4 src/bin/sh/shell.h