From owner-cvs-src-old@FreeBSD.ORG Tue Feb 8 23:18:23 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2F3710656C5 for ; Tue, 8 Feb 2011 23:18:23 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C077F8FC17 for ; Tue, 8 Feb 2011 23:18:23 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p18NINLI099132 for ; Tue, 8 Feb 2011 23:18:23 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p18NIN0k099131 for cvs-src-old@freebsd.org; Tue, 8 Feb 2011 23:18:23 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201102082318.p18NIN0k099131@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 8 Feb 2011 23:18:06 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh Makefile arith.h arith.y arith_lex.l arith_yacc.c arith_yacc.h arith_yylex.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 23:18:23 -0000 jilles 2011-02-08 23:18:06 UTC FreeBSD src repository Modified files: bin/sh Makefile arith.h Added files: bin/sh arith_yacc.c arith_yacc.h arith_yylex.c Removed files: bin/sh arith.y arith_lex.l Log: SVN rev 218466 on 2011-02-08 23:18:06Z by jilles sh: Import arithmetic expression code from dash. New features: * proper lazy evaluation of || and && * ?: ternary operator * executable is considerably smaller (8K on i386) because lex and yacc are no longer used Differences from dash: * arith_t instead of intmax_t * imaxdiv() not used * unset or null variables default to 0 * let/exp builtin (undocumented, will probably be removed later) Obtained from: dash Revision Changes Path 1.56 +5 -5 src/bin/sh/Makefile 1.14 +0 -2 src/bin/sh/arith.h 1.27 +0 -366 src/bin/sh/arith.y (dead) 1.30 +0 -143 src/bin/sh/arith_lex.l (dead) 1.1 +376 -0 src/bin/sh/arith_yacc.c (new) 1.1 +91 -0 src/bin/sh/arith_yacc.h (new) 1.1 +244 -0 src/bin/sh/arith_yylex.c (new)