tg
bd6d364c22
fix posix-mode-1 test on GNU/Linux:
...
grep: write error: Bad file descriptor
2006-09-21 22:08:26 +00:00
tg
851e2d1bdb
pasto: forgot these
2006-09-21 22:05:46 +00:00
tg
3dd0c521d0
use the easier __RCSID() etc. stuff from current <sys/cdefs.h>
2006-09-21 22:03:23 +00:00
tg
74efecaff0
no _POSIX_C_SOURCE=200112L for now, it works without on Solaris 8
...
and only without on "opensolaris build47 x86 32-bit"
reported in irc #ksh by <IvanR_> ivan@babylon-5.seppuku.net (Ivan Richwalski)
thanks
2006-09-13 23:07:10 +00:00
tg
f2eafb3044
fix description of $RANDOM, which is not limited to 15 bit any more
...
as a device to determine whether arc4random(3) is in effect or not.
2006-09-13 16:14:29 +00:00
tg
aeb7922065
fgrep on some slowlarisen doesn't know -q
2006-09-07 13:25:14 +00:00
tg
9c98b4ba54
17:38⎜«hondza:#mksh» so I built new mksh, run tests and got:
...
17:38⎜«hondza:#mksh» fail ../mksh/check.t:IFS-space-colon-3 (as expected)
17:38⎜«hondza:#mksh» FAIL ../mksh/check.t:integer-base-5
17:39⎜<mirabile:#mksh> interesting
17:40⎜<mirabile:#mksh> why does integer-base-5 fail?
17:40⎜«hondza:#mksh» j=~3
17:40⎜«hondza:#mksh» ~3 expands to /tmp/3
17:40⎜<mirabile:#mksh> aah, nice catch
17:40⎜<mirabile:#mksh> that must be quoted of course. bug in the test.
17:41⎜<mirabile:#mksh> can you try with j='~3'
17:41⎜<mirabile:#mksh> I'll commit that in an instant then
17:42⎜«hondza:#mksh» yeah, quoting it worked
17:42⎜<mirabile:#mksh> thanks
17:42⎜«hondza:#mksh» :)
2006-08-28 17:42:55 +00:00
tg
c037d54d6d
First result from the PDF review, by myself:
...
* a mksh -> an mksh
While here:
* fix list of shells that don't match . and .. with .* (pdksh went
missing in transit)
* Try to make fit on 39 pages by shortening a few
lines of redundant commentary about non-mksh books
* AT&T -> .At
2006-08-28 03:31:01 +00:00
tg
33ddf84c63
bump version
...
our regression tests:
Total failed: 1 (as expected)
Total passed: 213
the IFS testsuite:
# tests 6856 passed 5192 failed 1664
2006-08-28 01:40:54 +00:00
tg
6ec5e11ff2
in the case of BSD software, the F in RTFM is not vulgar...
2006-08-28 01:37:29 +00:00
tg
30f6ebb2a3
* add the 'hd' alias for hexdump from etc_profile
...
* optimise
2006-08-28 01:34:47 +00:00
tg
2b4f10b424
* move functions to top
...
* remove a few immature or redundant comments
* variablise better; use /usr/ucb/install on Solaris
2006-08-28 01:30:37 +00:00
tg
70b490dac3
revert the probably-problematic part of the Plan 9-derived MI diff
...
(can't commit it into plan9 branch at the same time, CVS _does_
handle committing to two different branches, but not twice the
same file)
2006-08-28 01:25:33 +00:00
tg
606909d6f6
Solaris 8 friendliness
2006-08-26 20:48:29 +00:00
tg
695503952f
use an autoconf-like approach to check for arc4random(3)
...
after gecko2 told me his mac recently has it and I found
out that Interix has it in -lcrypt and soon -lmirmake (:
2006-08-26 20:30:27 +00:00
tg
70c5762b38
regression test for file-based persistent history
2006-08-24 20:50:02 +00:00
tg
456bd584a3
bump version (hey, after all, I fixed the persistent history*!)
...
and that after submitting it to the FSF/UNESCO directory...
*) regression test for that? how?
2006-08-24 20:35:40 +00:00
tg
c81966621a
merge non-Plan9-specific stuff from the branch, add KNF, etc.
2006-08-24 20:32:53 +00:00
tg
38e8974e3e
merge commitid 10044EDF66B48DEB72C from plan9 branch:
...
fix thinko / reverse logic error rendering persistent history unusable
2006-08-24 18:57:30 +00:00
tg
4fac7ec24b
* remove redundancy
...
* integrate compat.h, version.h into sh.h (dependency trick didn't work anyway)
* mention #ksh in mksh(1) since the founder (twkm) said it's on topic too
(don't remove mention of #mksh despite it's usually empty because of control)
2006-08-22 22:49:38 +00:00
tg
93ab969fdc
compat.h does have the status of a system header though...
2006-08-22 22:22:07 +00:00
tg
5b2be8517f
save more whitespace and make it compile again (oops)
2006-08-22 22:21:20 +00:00
tg
a87ff74cbd
* version.h doesn't need an RCS ID
...
* compat.h does, add it to misc.c, always include it, move if NEED_COMPAT
* major whitespace cleanup in sh.h
2006-08-22 22:16:04 +00:00
tg
e20d82c4d1
* rename the (generated) Test.sh to test.sh
...
* point to it, TFM and the sample more
2006-08-22 22:01:59 +00:00
tg
7161eeb35e
Plan 9 stuff belongs into its branch
2006-08-18 18:59:49 +00:00
tg
5ee451f98c
restrict RANDOM to a positive 31-bit integer number, for use with modulo op
2006-08-18 18:48:26 +00:00
tg
79ba3570f0
add a note about why this check can fail
2006-08-18 13:41:09 +00:00
tg
b131ca909d
as long as we're using arc4random(3) to generate $RANDOM,
...
let it be an uint32_t, like nbsh(1)
2006-08-18 13:40:16 +00:00
tg
11282be59d
compat.h has a section 'extra headers', move inttypes.h there
2006-08-16 00:00:24 +00:00
tg
78cb0de69c
shuffle code around for better structure
2006-08-15 23:56:32 +00:00
tg
98c4dc04a1
interix doesn't have <inttypes.h>, openbsd no <stdint.h>, the old chaos.
...
so add <inttypes.h> only for the one platform which needs it today, APE.
2006-08-15 23:54:09 +00:00
tg
f34f24fefc
be more semantical
2006-08-15 23:45:53 +00:00
tg
1e313c282c
minor cleanups from the porting work
2006-08-15 23:43:30 +00:00
tg
083f19dc53
* document the feature-not-bug status of pipeline-subshell-1
...
* fix spelling in regression test
* expand test-stlt-1 by reverse logic, just to make sure
2006-08-14 20:41:21 +00:00
tg
2936b81597
check the last command of a pipeline is REALLY executed in a subshell
2006-08-14 20:36:39 +00:00
tg
1c9a925139
rewrite stripcom/Lstripcom function, making use of the 'last command
...
of a pipeline is executed in a subshell' trick, don't use co-process
(because that's verbose twice in an interactive shell profile), move
the noglob block into the while and rid the redundant +o and local.
2006-08-14 20:32:44 +00:00
tg
7c083ff950
improve English
2006-08-12 21:49:53 +00:00
tg
3ddbd5e7fa
optimise with a goto
2006-08-12 20:32:33 +00:00
tg
b208f76525
fix quoting levels of backthingies
2006-08-12 20:30:22 +00:00
tg
36b7c841d3
some help from the autoconf portable shell docs
2006-08-12 20:19:36 +00:00
tg
70babe6b0c
fix and simplify further
2006-08-12 20:01:35 +00:00
tg
d1dfe9657f
simplify further
2006-08-12 19:53:39 +00:00
tg
cca3f93e59
a probably-Solaris-/bin/sh-workable improved algorithm
2006-08-12 19:51:09 +00:00
tg
0eb31f6a82
optimise signames.inc output (shrinks binary size)
2006-08-12 19:38:44 +00:00
tg
e7fab65d5b
-D_ANSI_SOURCE no longer needed, verified on all platforms which
...
actually need signame.inc
2006-08-12 19:26:20 +00:00
tg
2950eea78d
mirbsdksh -> mksh
2006-08-12 18:49:21 +00:00
tg
9bda688f59
sanitise variable handling and nroff vs gnroff detection
2006-08-12 18:48:39 +00:00
tg
24000a4fb2
gensigs.sh was called with $SHELL (or /bin/sh if $SHELL was a csh),
...
which failed for Han Boetes using zsh as user shell (to test). Now,
the code is integrated into Build.sh as-is, and Test.sh uses $SHELL
no longer either but the mksh just built, in the shebang line.
2006-08-12 18:43:55 +00:00
tg
3b194eebb7
point people to the IRC channel (#mksh/OPN)
2006-08-11 13:46:32 +00:00
tg
1100be9300
re-implement "set -o posix" which doesn't do much ;)
...
but turns off 'braceexpand' when turned on as side effect,
just like oksh/pdksh.
document "set -o sh" too.
2006-08-09 20:44:16 +00:00