Sync. expr.c r1.24

"Mon Dec 8 14:26:31 2014 UTC
fix crash when trying to apply ++ without an lvalue; ok millert@ jsg@
"

/otto@/
Sync. history.c r1.40

"Thu Nov 20 15:22:39 2014 UTC
remove sys/file.h includes in favor of fcntl.h where needed.
ok deraadt guenther"

/tedu@/
Sync. r1.40 var.c

"Fri Dec 12 05:00:55 2014 UTC
Range check the value of the base for typeset -i base x=y.  Instead of
erroring for values outside of the range switch to base 10 to match the
behaviour of ksh93.  As we have a smaller digit alphabet than ksh93 the
accepted range is smaller (2-36) than ksh93 (2-64).  The other form
of setting a base, typeset -i x=base#y already has a range check that
errors (as ksh93 also does for that syntax).
Fixes a crash found with the afl fuzzer."

/jsg@/
Sync. r1.98 + r1.99 sh1, r1.154 + r1.155 ksh.1

"Tue Dec 9 14:39:37 2014 UTC
Tue Dec 9 15:37:13 2014 UTC

no more ctype(3);

put back some information what the character classes actually mean;
while here, remove the lie that regex(3) character classes would
depend on the locale;
ok jmc@"

/jmc@, schwarze@/