tg
883d9d99b3
switch ${%foo} to wcswidth-like behaviour – slightly problematic, and
...
the “set +U” case isn’t even handled
committed to branch because I’d like to get more input on this, for now
2009-11-28 14:21:47 +00:00
tg
7063a9a921
lintian: hyphen-used-as-minus-sign
2009-11-23 12:49:55 +00:00
tg
68b81a10bc
fix a warning from MirDebian mksh_39.9.20091122-0wtf1:
...
../../mksh/misc.c:586: warning: pointer targets in passing argument 1 of 'utf_ptradj' differ in signedness
2009-11-23 12:48:19 +00:00
tg
29176a176f
fix more manpages
2009-11-22 18:23:38 +00:00
tg
4cff10296b
bump vsn
2009-11-22 14:25:18 +00:00
tg
22ff50fe55
IFS (even in AT&T ksh93) are octets, so 'IFS=…' isn’t possible atm
2009-11-22 14:23:21 +00:00
tg
09b96b8fc7
25 is a better (POSIX) CHILD_MAX
2009-11-22 14:14:42 +00:00
tg
e240e62a55
don't tell lies
2009-11-22 14:13:38 +00:00
tg
ccc6f6de86
prevent buffer underrun reads, ok bsiegert@
2009-11-22 13:49:04 +00:00
tg
2094e3f25c
since we have wcwidth anyway, expose it as ${%strvar} to the user, iff
...
utf8-mode is enabled (otherwise it'll be a synonym for ${#strvar} aka
the number of octets in it)
2009-11-21 23:23:20 +00:00
tg
aa31a51e5f
sync with reality
2009-11-21 23:21:23 +00:00
tg
398b5b7a60
fix that as well
2009-11-21 22:32:08 +00:00
tg
6e67920bef
improve globbing:
...
• a=blöd; print ${a%???} → now printf 'b' not 'bl' in UTF-8 mode
• a=hä; print ${a%?} still broken
2009-11-21 22:30:36 +00:00
tg
d02e6be6cf
bugfix: ${x#?} should expand to nothing not '' if x was unset
2009-11-21 22:29:12 +00:00
tg
ba9375684d
update portmdoc, sprinke a few more macros that now work
2009-11-17 21:49:42 +00:00
tg
fe853065bb
make print_columns() aware that octets≠characters≠columns
2009-11-09 23:35:11 +00:00
tg
6e9d7f33e8
like a pathfinder, one good commit a day:
...
add most of the mksh wtf edition dot.mkshrc patch, some commented
out; optimise some other cases (e.g. don't reset MKSH if set, don't
export already exported variables, etc.)
2009-11-03 17:58:44 +00:00
tg
9008fe34a2
unalias which, to allow which -a sh, etc.
2009-11-02 18:47:02 +00:00
tg
f0bec87228
• fix 「mksh -lT1」 (it was broken due to getpgrp() et al. being
...
moved to early)
• allow ‘-T’ for MKSH_SMALL too, the installer needs it
sync clog
2009-10-30 14:37:43 +00:00
tg
6fcacf577d
make tab completing filenames with ':' '=' '$' '`' work as well as
...
others (colon and equals sign need to be simply escaped, while dollar
sign and accent gravis need double escaping like opening square brak-
ket did back then); add = to C_QUOTE to simplify (doesn't break any-
thing) and sort these strings asciibetically while here
2009-10-30 00:57:39 +00:00
tg
dc98ec23a6
do not use PATH_MAX on GNU/Hurd (even if it *was* defined), but use
...
some glibc-only functions that don’t require its use instead
tested on gnubber, where (admittedly) sysconf(_PC_PATH_MAX) == 1024…
2009-10-27 17:00:02 +00:00
tg
ceb591bf6a
• better IV for the oaathash-on-binary (as if we prepended a '\x01')
...
• better variable name for the LCG state
2009-10-18 12:30:06 +00:00
tg
eafe88aa74
• overhaul handling of special variables
...
• use a combination of the one-at-a-time hash and an LCG for handling
the $RANDOM special if !HAVE_ARC4RANDOM instead of rand(3)/srand(3)
and get rid of time(3) usage to reduce import footprint
• raise entropy state (mostly in the !HAVE_ARC4RANDOM case though…)
• simplify handling of the $RANDOM_SPECIAL generally
• tweak hash() to save a temp var for non-optimising compilers
• some int → mksh_ari_t and other type fixes
• general tweaking of code and comments
2009-10-17 21:16:05 +00:00
tg
9f4376d2ad
GNU make needs VPATH with the for-all-make(1)s thing (at least if
...
the sources are in different directories, despite being listed in
${SRCS_FP} with full paths) - XXX can this work with nmake or so?
2009-10-16 18:51:30 +00:00
tg
990c9eaf0c
tentatively add new -M option to generate a "Makefrag.inc" instead
...
of doing the actual compile (along with the usual Rebuild.sh, test.sh
and, if necessary, things such as signames.inc) for Android integration
2009-10-16 18:45:31 +00:00
tg
18c470fb3b
since mksh uses /* comments with apo'strophes */ both in the copyright
...
and code, we MUST check if they work, since C99 apparently forbids it…
2009-10-15 16:50:21 +00:00
tg
578d4e6314
fix exit-eval-1 (Debian #550717 ), sync SUSv4 wording, improve comments
2009-10-15 16:36:27 +00:00
tg
9afaf050d8
fix utilities-getopts-1 and utilities-getopts-2
2009-10-15 16:32:50 +00:00
tg
c7a8b367f8
remove regression-44 in favour of utilities-getopts-1 (the former checked
...
the AT&T ksh88 behaviour, the latter the AT&T ksh93 behaviour, which dif-
fer from each other, on the very same thing with the exact same test)
2009-10-15 16:32:23 +00:00
tg
8b4314cbcd
fix exec-function-environment-1 (I hope this doesn’t break anything else!)
2009-10-15 16:25:15 +00:00
tg
0d1ef736c7
modify the oksh-varfunction regression test to reflect that, indeed, a
...
change of a variable inside a Bourne style POSIX function will affect
the current execution environment of the function caller (to be consi-
stent with exec-function-environment-1)
2009-10-15 16:24:49 +00:00
tg
7b8f207cc9
new exec-function-environment-1 replacing exec-simple-1 from posh, after
...
reading SUSv4 throughoutly
cf. Message-ID: <Pine.BSM.4.64L.0910151542460.4645@herc.mirbsd.org>
2009-10-15 16:15:03 +00:00
tg
ce7359ffc5
posh’s utilities-echo-2 is actually incorrect; reason here
...
cf. Message-ID: <Pine.BSM.4.64L.0910151525270.4645@herc.mirbsd.org>
2009-10-15 15:32:34 +00:00
tg
a9ca7a04c8
add two regression tests from Debian posh, adjusted to pass with ksh93
2009-10-15 15:23:41 +00:00
tg
25516ac756
another exit code in substitution questionable thing
...
split this one by set ±o sh
2009-10-15 14:58:51 +00:00
tg
84f8d3191a
make some of these tests more posh-friendly
2009-10-15 14:12:46 +00:00
tg
8f3f520725
AIX {,/usr}/bin/bsh is an SVR3 Bourne Shell, according to Sven Mascheck,
...
so I must not use foo="…`…"…"…`…" at all
2009-10-15 12:58:34 +00:00
tg
620b4446d7
make exit-eval-1 an expected-fail for now, until we can fix this
2009-10-15 12:50:11 +00:00
tg
b694bde402
rename regression-56 into exit-eval-1 and change expected output
...
from what AT&T ksh88 does to what AT&T ksh93 does and POSuX expects
Reported by Clint Adams as Debian #550717 , to be fixed...
2009-10-14 18:06:57 +00:00
tg
888c7befea
group exit-related tests
2009-10-14 18:04:52 +00:00
tg
549888a183
while testing haserl-0.9.26 on MirBSD, I discovered that the echo builtin
...
in FSH mode did in fact, contrary to POSIX and Debian Policy 10.4 behavi-
our (I think), interpret escape sequences; fix and add testsuite for echo
2009-10-10 21:17:31 +00:00
tg
b4a32ff5f7
cygwin seems to force a+x for files beginning with ':\n' so prepend
...
a nop newline to make mksh.exe pass this test
2009-10-10 17:39:48 +00:00
tg
73147a7fe9
fix lazy evaluation of assignments in ternary ops
2009-10-04 13:19:33 +00:00
tg
5f58261287
fix long-standing parenthesēs problem: ((foo) || bar) is now parsed corr.
2009-10-04 12:45:23 +00:00
tg
c2e5737fca
fix dollar quotes in here strings and here documents (regression)
2009-10-04 12:44:19 +00:00
tg
40d11a2066
on the other hand, this is a regression in mksh, apparently
2009-10-04 03:13:06 +00:00
tg
33b9f8b666
* rename "set -o posix" (FPOSIX) to "set -o sh" (FSH) because it's not
...
just a "somewhat more POSIX" but also a "/bin/sh legacy kludge" mode
* consistently capitalise POSIX and SUSv3/SUSv4 (same as AT&T ksh) and
Bourne shell
2009-10-02 18:08:37 +00:00
tg
2ea131ab1f
make another Debian posh bug into a regression test (expected-fail)
2009-10-02 17:05:01 +00:00
tg
c0589fd329
fix typos, From: Clint Adams <schizo@debian.org>
2009-10-02 16:59:53 +00:00
tg
ff8b75f46f
SUSv4 says that there be exit 127; the old code tried but failed, so it
...
was an actual programmatical bug…
2009-09-29 12:28:13 +00:00