From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 6 14:35:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB04F37B401 for ; Sun, 6 Apr 2003 14:35:02 -0700 (PDT) Received: from bilver.wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id B98CB43FAF for ; Sun, 6 Apr 2003 14:35:01 -0700 (PDT) (envelope-from bv@wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by bilver.wjv.com (8.12.9/8.12.9) with ESMTP id h36LYs1i005164 for ; Sun, 6 Apr 2003 17:34:55 -0400 (EDT) (envelope-from bv@wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.9/8.12.9/Submit) id h36LYsw6005163 for freebsd-hackers@freebsd.org; Sun, 6 Apr 2003 17:34:54 -0400 (EDT) Date: Sun, 6 Apr 2003 17:34:53 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20030406213453.GB4780@wjv.com> References: <20030406190054.AA08537B404@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030406190054.AA08537B404@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.2 required=5.0 tests=IN_REP_TO,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT version=2.43 Subject: Re: /bin/sh and BIG NUMBERS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 21:35:03 -0000 On Sun, Apr 06, 2003 at 12:00 , freebsd-hackers-request@freebsd.org exclaimed "Las Cucarachas entran, Pero no puede en salir", and then rambled on saying with: > 2. Re: /bin/sh and BIG NUMBERS (Giorgos Keramidas) > Message: 2 > Date: Sun, 6 Apr 2003 06:24:50 +0300 > From: Giorgos Keramidas > Subject: Re: /bin/sh and BIG NUMBERS > To: Alex Semenyaka > Cc: freebsd-hackers@freebsd.org > Message-ID: <20030406032450.GC4130@gothmog.gr> > Content-Type: text/plain; charset=us-ascii > On 2003-04-05 07:06, Alex Semenyaka wrote: > > I found that /bin/sh cannot handle numbers those do not fit to integer > > type. That is not too bad. Too bad that it just silently warps them > > in arithmetical operations: > > alexs@snark> /bin/sh -c 'echo $((10000000000-1))' > > 2147483646 Not all shells have that problem. I'm using the real KSH from AT&T via the ports. It's returns 999999999 quite nicely :-) This is just an FYI - and /bin/sh should get changed. > End of freebsd-hackers Digest, Vol 2, Issue 8 > ********************************************* -- Bill Vermillion - bv @ wjv . com