tg
703551bd4f
attempt a better fix: break off widthadj upon encountering NUL,
...
add remaining columns as octets (should also speed optimise)
2009-12-05 20:17:59 +00:00
tg
86d4dee0da
valgrind (thanks ciruZ for trying) found uninitialised memory use
...
in utf_skipcols by x_goto
2009-12-05 19:44:09 +00:00
tg
8213a28403
llvm/clang scan-build is now content…
2009-12-05 17:43:50 +00:00
tg
437f9b76e1
clangs static analyser says these are dead stores
2009-12-05 17:02:25 +00:00
tg
37b1260d13
unbreak test.sh in some cases
2009-12-05 16:19:59 +00:00
tg
f7ef72cbd7
Kürzen!
2009-12-05 13:02:26 +00:00
tg
417fd60c76
* fix 'set -A foo -- [2]=a b c' contingency (tested against GNU bash4,
...
which, in its latest sid incarnation, even received mksh's ability
to produce ${!foo[*]} array keys, wow!)
* plug a memory leak while here (ATEMP only, but still)
2009-12-01 19:15:35 +00:00
tg
0f10db42ef
explicit cast, since Bionic headers aren’t type safe, apparently
2009-12-01 13:12:30 +00:00
tg
24b48aeb3f
this better be const, too
2009-11-29 17:37:22 +00:00
tg
fa3acb939b
fix 'mksh -U -i' and 'mksh +U -i'
2009-11-28 15:38:30 +00:00
tg
a09f05e77a
/me is annoyed
...
I read, IIRC in the Cederqvist, that 'cvs tag' sets a sticky tag onto
the cwd… it doesn’t, apparently. (I actually like it better this way,
but one needs to know!)
2009-11-28 14:28:03 +00:00
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