Commit Graph

3083 Commits

Author SHA1 Message Date
tg 7d5d3d8440 no LDSTATIC on Darwin 2005-10-25 20:54:29 +00:00
tg 871fcf8ed6 update licencing information 2005-10-25 19:56:43 +00:00
tg 9b97d72d5e * move _all_ #include stuff into sh.h
* sort out #include stuff which isn't necessary on MirOS into compat.h
2005-10-25 19:53:29 +00:00
tg 91303fe9d1 if we have some C shell, use /bin/sh instead 2005-10-25 19:46:52 +00:00
tg df22a0fb1b Shuffle some stuff around to the compat functions and add glue 2005-10-25 19:46:11 +00:00
tg 181463f990 another Slowlaris speciality... 2005-10-25 19:35:14 +00:00
tg 2f9687c58a follow OpenBSD and add mknod as mksh builtin (mknod <file> p acts as mkfifo)
but write a good chunk of that code myself (better structured, better error
handling, more gotos, less function calls, int -> bool)

passes all tests on mirbsd; this will become mksh R25 once tested on other
supported OSes
2005-10-21 12:41:56 +00:00
tg 4e37f85975 Tell user which value of index is out of bounds. ok deraadt@
From otto@obsd
2005-10-21 11:55:23 +00:00
tg 0b85dc1e81 remove USE_PRINTF hooks, it never worked anyway, and probably nobody
is going to fix it...
2005-10-21 11:44:25 +00:00
tg 30aed785bc fix up DEBUGLIBS and DEBUGPROGS 2005-10-20 12:47:49 +00:00
tg c9dbe98906 we have a posix option? No sir. 2005-10-08 19:34:39 +00:00
tg 7ee8296628 our test(1) promises we can do string1 < string2, and
our /bin/test uses mksh... so we pee (literally) on
POSIX and don't accept < and > only for [[ ... ]] operator
2005-10-08 19:31:00 +00:00
tg 1b081938fb * bump version
* disable DEBUGPROGS
2005-10-08 18:53:10 +00:00
tg 4bd3041986 $LINES is implemented
From Matthias Kilian via obsd
2005-10-07 18:36:19 +00:00
tg 892c6123c5 Fix a redraw problem that occurs when a recalled history line has
length equal to screen width - 2. Spotted by jmc@, tested by various.
ok deraadt@
From otto@obsd
2005-10-07 18:34:18 +00:00
tg b2bea18ea3 Process window size changes after xread(). [change window size]
echo $COLUMS $LINES; will now print the new sizes immediately, instead
of after the second echo. ok millert@
From otto@obsd
2005-10-07 18:32:23 +00:00
tg 6c985b8b81 fix uber-pedantic Apple GCC 4 2005-09-12 19:28:18 +00:00
tg 6a84a52bed simplify by not dup'ing 2005-09-12 18:59:51 +00:00
tg cf22cdbec5 revert -r1.18 here too 2005-09-11 14:47:27 +00:00
tg 8d305cd1e3 revert to R24b since we don't printf ATM 2005-09-11 00:32:30 +00:00
tg ef41b5dbdc disable printf(1) builtin for now, it's broken (yet irreproducible)
probably multiple i/o redirection, or stuff like that
2005-08-29 01:16:22 +00:00
tg 6c5d08ea6f * add printf(1) as mksh(1) builtin on MirOS
(or, more general, all systems using Makefile
  instead of Build.sh)
* document this fact
2005-08-26 22:03:56 +00:00
tg c34c9d7542 * strip .Mx macro copy down to what's needed
* comment about \" vs " in here documents
2005-08-26 21:54:05 +00:00
tg 309b8d635f * make 64-bit clean on GNU/Linux by default
* clean up and remove some .Xr from the man page
* bump version
2005-08-21 13:02:17 +00:00
tg 049c867c7d follow style(9) ;) 2005-08-21 12:52:29 +00:00
bsiegert 62575b6338 Move <sys/time.h> include to the top. Unbreaks mksh compilation on Darwin,
where <sys/resource.h> contains several struct timeval references, but this
struct is only defined in <sys/time.h>.

agreed tg@
2005-08-21 12:43:55 +00:00
tg 0651ba008e ^V now is quote, not version, even in emacs mode. (From OpenBSD.)
Also, the "version" command got removed in its entirety.
Shaves off another global variable, even.
2005-08-02 12:35:27 +00:00
tg 1197e6fd1b say goodbye to creat().
From: Marc Espie <espie@cvs.openbsd.org>
2005-08-02 12:26:17 +00:00
tg 35f1a9b29f please ISO C99 2005-07-12 13:30:38 +00:00
tg c02f87e61c gcc 4.0 with -O2 -Wall thinks it finds these uninitialised variables,
so quieten gcc

found by Bastian "waldi" Blank
2005-07-12 13:24:00 +00:00
tg ee7992988b * move <sys/param.h> include to sh.h
* fix compilation and invocation of test suite with whitespace in
  the pathnames for real, this time
* clean up (especially whitespace)
2005-07-07 23:27:52 +00:00
tg 3506838417 undo fix for Debian PR #71256 which turned to be bogus and break make(1) 2005-07-07 22:00:45 +00:00
tg fb64668227 remove Korn's bizarre /dev/fd hack
(only affects Interix!)

Tests on /dev/fd are now officially unsupported in mksh too.
2005-07-06 00:02:06 +00:00
tg 74a942550d it's said newer NetBSDen have arc4random(3) 2005-07-05 22:00:20 +00:00
tg 4a46d7e4bb (this commit on an "AMD Sempron 2200+ (1.5GHz), 2x 256MB PC3200 DDR
(running at PC2700 speed), some Maxtor 80GB 2MB 7200rpm drive" box running
 DragonFly draco.osr.netphreax.net 1.3-Preview DragonFly 1.3-Preview #0: Wed Apr 13 13:57:37 CEST 2005     root@chlamydia.fs.ei.tum.de:/usr/obj/usr/src/sys/GENERIC  i386

DragonFly BSD is now officially supported
Thanks to Thomas E. Spanjaard for providing a testing environment.

This might fix or break FreeBSD support, who knows...
2005-07-05 21:48:42 +00:00
tg ea5cb2b055 add RCS ID; stress the collective work copyright more 2005-07-05 21:32:42 +00:00
tg 37428ee9c3 mention strlfun.c (glibc) 2005-07-05 21:31:32 +00:00
tg e260a637a3 more notes about a known fail 2005-07-04 12:48:12 +00:00
tg f11d5ff712 clean up code 2005-07-04 12:47:13 +00:00
tg 76c700b3a6 get rid of $PGRP
get rid of special bourne-shell emulating mode
2005-07-04 12:34:24 +00:00
tg e392a30930 get rid of special "POSIX"ish mode 2005-07-04 12:27:28 +00:00
tg 3fb44287d4 mksh now does not look at $EDITOR and $VISUAL any more to determine
the editing mode; default is emacs (vi and gmacs off).
mksh also defaults to emacs-usemeta=OFF now.
2005-07-04 12:07:41 +00:00
tg bfc5b81602 mksh no longer looks at its own called name or $SHELL
to determine if it should be a restricted shell
2005-07-04 11:57:55 +00:00
tg 29d0a88111 date of today 2005-06-24 15:42:03 +00:00
tg 430fb8edab missing piece 2005-06-24 15:40:38 +00:00
tg 37d4f1e874 first step for GNU/Cygwin support 2005-06-24 15:36:57 +00:00
tg c4629baed6 adjust "hints" 2005-06-08 23:02:08 +00:00
tg eaed948075 error messages to stderr
from Han Boetes
2005-06-08 22:47:54 +00:00
tg 3b5d75318d fix -r logic 2005-06-08 22:46:06 +00:00
tg d790bd7094 Han Boetes wants a parameter for dynamically linked binaries
so I'll re-code a getopt clone

This _still_ works with Solaris /bin/sh, even if both source
and build (current) directory contain spaces.
2005-06-08 22:42:31 +00:00