Date: Tue, 8 Feb 2011 23:18:06 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh Makefile arith.h arith.y arith_lex.l arith_yacc.c arith_yacc.h arith_yylex.c Message-ID: <201102082318.p18NIN0k099131@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102082318.p18NIN0k099131>
