fix bitching of: gcc version 3.3.5 (Debian 1:3.3.5-13)
   Revision  [7]1.16  /  ([8]download)  -  [9]annotate  - [10][select for
   diffs] , Mon Nov 20 21:53:39 2006 UTC (2 weeks, 1 day ago) by miod
Compute user-given ulimit value times ulimit unit as an rlim_t value, not a
long value; catches some 32 bit overflows on 32 bit platforms.

Found by drahn@, ok otto@
catch up openbsd manpage changes: typos; from alf schlichting,
and revisit the RLIMIT_AS issue
this is mksh, benzday edition (2006/12/07)
last code change was on 12/06
add a TODO here
CPPFLAGS+=-DMKSH_SMALL is not the only functionality-reducing option,
yet the others are not similar (mostly: OS reduces functionality, eg.
SunOS doesn't do persistent history, Minix some job control, Plan 9!)
fix typo, sync licence template, reindent
* main.c: when doing the conversion from strcasecmp (wrongly used)
  to strcasestr, it was used in a wrong way (reverse logic error in
  checking its return value), turning to mis-detection of UTF-8 locale.
* sh.h, check.t: bump version
* copyright: bump year
* mention additions go at the bottom (e.g. 'source' scripts), in case
  they fail (due to nonexistence), so that the rest is still executed
* export $MKSH (users can set SHELL=$MKSH here, but I'm conservative)
* main.c: prevent segmentation faults on inferiour operating systems
  such as Debian GNU/Linux "etch" 4.0 with not installed locale file
  corresponding to the current environmental settings. ばかたち!
use RLIMIT_AS, after much RTFM
sync
expand ~foo to getpwnam("foo")->dir only #if !defined(MKSH_SMALL)
this makes it possible to build a (small) mksh on glibc systems statically
oops, match hex numbers; seen while looking at ankon's (FreeBSD) problem
use the same matching for NSIG as for the others - cut off
everything which doesn't look like a dec/hex/oct number
this double-backtick in double-backtick (SunOS /bin/sh) stuff
looked waay too weird to me, use a temporary variable instead
and make the two occurencies of the code look more alike
introduce TARGET_OS, for crossbuilds, contains uname -s output
if building a small mksh, don't check for persistent history,
since it's not supported anyway; makes regression tests pass there
small mkshs also shouldn't pull in the entire locale package,
so don't even call setlocale, lest alone nl_langinfo (already
disabled before)
add test how to run the C preprocessor and fix the $NOWARN check and docs