Date: Fri, 27 May 2011 20:53:07 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh arith_yacc.c builtins.def Message-ID: <201105272053.p4RKrRDT019046@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-05-27 20:53:07 UTC FreeBSD src repository Modified files: bin/sh arith_yacc.c builtins.def Log: SVN rev 222386 on 2011-05-27 20:53:07Z by jilles sh: Remove the "exp" builtin. The "exp" builtin is undocumented, non-standard and not very useful. If exp's return value is not used, something like VAR=$(exp EXPRESSION) is equivalent to VAR=$((EXPRESSION)) except that errors in the expression are fatal and quoting special characters is not needed in the latter case. If exp's return value is used, something like if exp EXPRESSION >/dev/null can be replaced by if [ $((EXPRESSION)) -ne 0 ] with similar differences. The exp-run showed that "let" is close enough to bash's and ksh's builtin that removing it would break a few ports. Therefore, "let" remains in 9.x. PR: bin/104432 Exp-run done by: pav (with some other sh(1) changes) Revision Changes Path 1.5 +1 -1 src/bin/sh/arith_yacc.c 1.22 +1 -1 src/bin/sh/builtins.def
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105272053.p4RKrRDT019046>