tg
cf2eb697e2
use bounds check for function that calls read
...
prompted by lina output, 10x tarzeau
not a bug
2007-08-06 12:02:39 +00:00
tg
45cadd2abf
make sure we don't show any junk in MKSH_CLS_STRING even if the terminal is
...
not standards compatible
2007-07-31 15:42:50 +00:00
tg
47836e45e7
add a new bindable command “clear-screen”, which can be bound to the ^L key
...
so that archite@midnightbsd won’t have to add evil kludges to oksh again if
they switch their ksh to mksh ☺
both “clear-screen” and “error” aren’t bound; default binding for ^L stays,
as usual, “redraw” (principle of least surprise); however GNU bash converts
also might want to put “bind ^L=clear-screen” into their ~/.mkshrc.
2007-07-31 15:29:40 +00:00
tg
73fa4622ef
do the rlim_t for tcc cast dance for Debian GNU/kFreeBSD
2007-07-31 13:55:26 +00:00
tg
496b8f4dc3
• new way of checking for mknod & friends, due to tcc vs glibc weirdness
...
• bump vsn for the code restructuring
2007-07-31 11:11:25 +00:00
tg
809c1446b2
some steps towards building with tcc
2007-07-31 10:42:15 +00:00
tg
9884efef00
• implement some (not yet tested) kludges for tcc
...
• define $CPP internally
2007-07-31 10:17:52 +00:00
tg
735ec12dfd
• TenDRA (testsuite pass)
...
• Fabrice Bellard’s tcc (not supported yet, may follow later)
reminded by tarzeau (Gürkan Sengün)
2007-07-31 10:04:46 +00:00
tg
3e5b234965
these are actually cool people, I think
2007-07-26 22:38:31 +00:00
tg
b9da9d4ea3
if the shell doesn't know the cwd, “builtin pwd” won't either
2007-07-26 13:37:21 +00:00
tg
8c958b410d
small textual nits
2007-07-26 13:35:58 +00:00
tg
b8a693ed68
mention ${foo:2:3} limitations
2007-07-26 13:32:16 +00:00
tg
3718a00106
• test on HURD (gnubber)
...
• fix unreachable code (break stmt) cought by suncc on yofuh's E420
• bump vsn to today
2007-07-26 13:23:52 +00:00
tg
7374f12176
some more not-so working platforms
...
can't extend the working ones better since my UWIN decided to break
after MSVC++ Expreß seems to have “upgraded” some libraries… *sigh*
2007-07-24 21:54:46 +00:00
tg
b20e5a90ce
initial support for PW32, not quite working yet (same issues as Minix 3 and Plan 9, I think)
2007-07-24 21:47:14 +00:00
tg
e37577de42
fix another errexit bug: unwind() is __dead, so the pseudo-signal was never
...
delivered to the process
• regression test by Clint Pachl, verified against Debian ksh93 by me
• place to fix it in the code discovered by Otto Moerbeek
2007-07-24 11:22:04 +00:00
tg
f2a52c65fa
… and fix that bug.
...
Guvf pbzzvg haxabjvatyl fcbafberq
ol NheVFC ToE, fvapr jr hfr zxfu,
naq zl bgure gnfxf ner jnvgvat...
2007-07-23 14:28:52 +00:00
tg
7c0209771c
more testcase – currently broken… had thought of this but apparently not done
2007-07-23 14:10:48 +00:00
tg
b09b3621e2
• we had an unused variable leftover
...
• make warning-free for both gcc and xlC
2007-07-22 14:01:50 +00:00
tg
748d09122a
de-experimental AIX
2007-07-22 13:47:10 +00:00
tg
a1433b7122
• Build.sh: always prepend well-known signal names, so that some signals
...
will not come up weirdly (e.g. on AIX: SIGSAK (SIGMAX?), SIGIO (SIGAIO?),
SIGURG (SIGIOINT?)), and add a few more while here
• check.t, sh.h: bump
2007-07-22 13:46:15 +00:00
tg
cf5fc9eac2
some null/NUL
2007-07-22 13:38:26 +00:00
tg
979406bba7
• support IBM xlC on AIX
...
• fix all bugs it could find ☺
2007-07-22 13:34:52 +00:00
tg
211ecedf4e
• move __GNUC__ test quite to the bottom, since I fear other compilers,
...
such as icc, define it too
• provide a Rebuild.sh skipping the mirtoconf checks – devel only!
2007-07-22 13:08:54 +00:00
tg
29d4125e3c
switch $CC default from gcc to cc, as we support most native compilers now,
...
and – with Daniel's words – das ist doch kein Rumgeleenockse hier!
2007-07-17 19:41:26 +00:00
tg
56a8da33cf
• make the "if called as sh, set FPOSIX" not !SMALL-only
...
• bump to R30-gamma, feature freeze
2007-07-17 13:56:51 +00:00
tg
823f5c2a17
hopefully fix large file stuff for real
2007-07-09 11:19:55 +00:00
tg
4422137a88
introduce SADELIM_MAKE matching style – ${foo:S/bar/baz/flags} –
...
to complement SADELIM_BASH, as before – ${foo/bar/baz} –
but ifdef'd out for now, so probably no coding style. also new
is a flags array (not declared yet)
2007-07-07 22:29:36 +00:00
tg
cd80bc8012
these can't be nested and are expected to fail, although our error message
...
is different from bash's that's okay
2007-07-06 11:54:34 +00:00
tg
a29f4f60f8
I'm an idiot and this looks better and is more KISS (I suppose)
...
too bad I don't just wrap it in braces
2007-07-06 02:39:37 +00:00
tg
fca52a0f6a
give the lexer a bigger state stack if !MKSH_SMALL
2007-07-06 02:24:18 +00:00
tg
78d58de7a0
fix the rest of it
2007-07-06 02:22:57 +00:00
tg
26a6e5acc9
make this pass varexpand-substr-1 and ‘c’ of varexpand-substr-2
...
by actually using the lexer and parser for that
2007-07-06 01:53:36 +00:00
tg
c9db9eb092
more bash-like behaviour here, oeps
2007-07-06 01:37:39 +00:00
tg
85a4a1d9c4
fix the regression test, mksh fails it now
2007-07-06 01:30:32 +00:00
tg
e6055dbf19
better position for that (cosmetics)
2007-07-05 23:48:53 +00:00
tg
fafd6998bd
remove some uwin kludges, just live with it
...
keep these that are indeed correct though
2007-07-05 11:49:07 +00:00
tg
888740cf66
fix what happens after we check for -D_FILE_OFFSET_BITS=64 – actually
...
use it. discovered in debian 29.6-2 by hondza via IRC, thanks a lot!
2007-07-04 14:53:19 +00:00
tg
18804b3555
silence a gcc-4.2 warning and, in doing so, save quite a few operations:
...
• a NUL termination
• a strlen()
• a pointer comparision
• eventually a function call
replaced by
• a pointer subtraction
2007-07-01 22:17:29 +00:00
tg
77e27b9656
fix temp files not being cleaned up correctly
2007-07-01 21:59:10 +00:00
tg
3ef434d378
fix NOWARN stuff
2007-07-01 21:52:20 +00:00
tg
f948c13a78
• fix display problem
...
• add <libutil.h> if it exists – revoke(2) on UWIN
• add <stdlib.h> for NULL in test of mmap(2)
• regen CPPFLAGS for MirBSD native builds
2007-07-01 21:47:08 +00:00
tg
7004525fcc
• add support for the Borland C++ Builder (on UWIN)
...
• add support for the Digital Mars compiler (on UWIN)
• clean up
• describe new build targets and that UWIN sucks
• bump vsn
2007-07-01 21:27:03 +00:00
tg
2e42fa62b6
Borland C++ found these
2007-07-01 21:10:29 +00:00
tg
320b95ea4f
• ugh, CR-LF line endings
...
• reduce number of temp files used
2007-07-01 19:24:11 +00:00
tg
36188c60be
coerce this into running on UWIN - or rather sort of. Ugly.
2007-07-01 19:04:53 +00:00
tg
af1aa9655f
MSC improvements
2007-07-01 18:00:18 +00:00
tg
e60d1db958
use binmode to fix on UWIN
2007-07-01 18:00:00 +00:00
tg
2f734698d3
• mirtoconf if MS C security checks work (with our C library)
...
• simplify "-Wc," ./. "-X " ./. "-Yc," separation
2007-07-01 17:22:07 +00:00
tg
74c0adf312
mirtoconf for mmap(2), UWIN doesn't have it
2007-07-01 17:19:15 +00:00