diff options
author | jilles <jilles@FreeBSD.org> | 2011-02-08 23:18:06 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-02-08 23:18:06 +0000 |
commit | 1cbab8a321b4fa3392f1ed1ec381b3fadbc41558 (patch) | |
tree | bb9c25c32a33a77e92cd3306937e474e7efe2da0 /bin/echo | |
parent | 6543d03b931354fdbab3e83e273b87c539c81231 (diff) | |
download | FreeBSD-src-1cbab8a321b4fa3392f1ed1ec381b3fadbc41558.zip FreeBSD-src-1cbab8a321b4fa3392f1ed1ec381b3fadbc41558.tar.gz |
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
Diffstat (limited to 'bin/echo')
0 files changed, 0 insertions, 0 deletions