tg
a2042321ac
meh, just don’t ever use ls(1) in a test; on some, it shows dotdirs
2012-12-28 04:25:32 +00:00
tg
39682506ff
experimental test rewriting for QNX fun
2012-12-28 04:01:17 +00:00
tg
595f57ebad
mark glob-range-3 as need-pass: no
2012-12-28 03:18:46 +00:00
tg
b2396677e7
harmonise sys_{sig,err}list ⓐ checks, ⓑ uses, ⓒ _decl values when not needed, ⓓ prototypes; ⓔ “const” is a keyword and thus space-separated from the preceding ‘*’ pointer indicator
2012-12-28 02:28:39 +00:00
tg
866635468b
RT says glob-range-3 breaks on QNX nowadays
2012-12-24 14:37:13 +00:00
tg
6d5e27a31a
gcc-snapshot (see below) issued a clobber warning, and both it and mgcc
...
yowled about the memmove test until I found a compromise
gcc version 4.8.0 20121120 (experimental) [trunk revision 193662] (Debian 20121120-1)
2012-12-22 00:03:42 +00:00
tg
ce602be6be
sync clog et al.
2012-12-17 23:46:33 +00:00
tg
c4e88acd83
Correct mistake when doing hashtable lookup collision resolution… oops
2012-12-07 23:46:38 +00:00
tg
98b6cd9b8d
add testcase for basic I/O redir which RT had issues with on Linux 0.11
2012-12-07 23:43:09 +00:00
tg
f654a3dea4
fix libFirm/cparser -Wsign-compare
2012-12-05 19:38:25 +00:00
tg
cf807eb83a
Add assertions and shuffle code around for LLVM+Clang scan-build.
2012-12-04 01:18:34 +00:00
tg
77c4cb88e4
implement tty tracking and bump to R41 for feature completeness
...
• tty_fd is now never closed
• new tty_hasstate tracks tty_state (cf. thread around
http://article.gmane.org/gmane.os.miros.mksh/79 and PLD bug)
• as users requested, importing COLUMNS or LINES from the environment
now removes its special-ness as does unsetting it
• otherwise, setting COLUMNS or LINES is honoured until the next SIGWINCH
arrives or change_winsz is otherwise run (e.g. before displaying the
prompt in the interactive command line editing modes)
• SIGWINCH is now honoured before each reading of $COLUMNS and $LINES too
• change the Uhr to match – it no longer calls stty(1) ☺
2012-11-30 19:25:08 +00:00
tg
cbf1cea38a
sync clog
2012-11-26 23:14:46 +00:00
tg
c9970fb7ba
make regression testsuite once again safe to run with -DMKSH_NOPROSPECTOFWORK
2012-11-25 22:23:31 +00:00
tg
2fc5aa487b
RT tells me Minix 2 (i386) also doesn’t have gettimeofday(2)
2012-11-20 18:50:46 +00:00
tg
68d8d83e67
add checks for ~+ and ~- (inspired by posh change) and bump date,
...
as I’m not likely to continue hacking tonight
2012-11-12 19:13:46 +00:00
tg
b7659199ca
fix a test
2012-11-12 18:48:29 +00:00
tg
faa0a78df3
restore yyrecursive context in quitenv (LP#1069428)
2012-10-30 20:07:15 +00:00
tg
bfe7d78d40
bring back ${ foo;} sans dot.mkshrc patch, using a temporary file, and as experimental feature
2012-10-22 20:19:18 +00:00
tg
c7419d9e6a
defer setting exstat for eval to 0 (the one used in case shell() is empty)
...
until after the stuff run in shell() has had a chance to toy with $?
bug forwarded by one of our packagers, found by one of their users
2012-10-21 21:55:05 +00:00
tg
59f7279ea2
this is now http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55009
2012-10-21 17:38:22 +00:00
tg
d8662eb228
even more hacks to pass “-O666 -fstrict-overflow -Wstrict-overflow=9 -flto=jobserver” with “gcc version 4.8.0 20120930 (experimental) [trunk revision 191865] (Debian 20120930-1)” ☹ plus make the rtchecks mandatory
2012-10-03 17:24:23 +00:00
tg
eac85ffdf1
OpenBSD found out that "building argv for $* and $@" manipulates l->argv
...
in place which affects ps(1) output on BSD; create a new array and copy
the original parts from argv[] there without touching argv passed to main
2012-09-07 21:02:43 +00:00
tg
0415b74436
Update wcwidth data from Unicode 6.1.0
2012-09-01 23:46:41 +00:00
tg
e6ddeaa53d
sync clog
2012-08-24 21:33:51 +00:00
tg
bb5e56d4c4
remove ${ foo;} from mksh again due to buffering issues jilles found
2012-08-17 18:34:25 +00:00
tg
f18b1fae85
bump
2012-08-03 18:45:32 +00:00
tg
9b7b7f742e
implement ksh93 feature ${ foo;}
2012-07-30 21:37:17 +00:00
tg
8e51bb7a23
fix reentry of here documents (LP#1030581)
2012-07-30 19:58:05 +00:00
tg
058e7f8ed4
do implement quoting, as ${foo@Q} though, as hommage at mirmake
...
dedicate this “release” to Andi
and use tomorrow’s (UTC) day for version, to cover up my debian fuckup
2012-07-20 23:22:13 +00:00
tg
4778a2a62f
lesson learned from http://k1024.org/~iusty/blog/entry/perf-null/ – add -DMKSH_SMALL_BUT_FAST which gives more speed (8/20K less cycles, 5/9K less insns, 1.8/2.4k less branches, 65/275 less branch misses) on Debian/amd64 (klibc-static/eglibc) at cost of 0/2 more page faults and 6K/6K more text size
2012-07-01 15:55:00 +00:00
tg
c1f821d4e5
(mksh) tighten 32-bit requirements; (lksh) switch to long; allow any bitness
2012-06-28 20:17:39 +00:00
tg
ae26f45417
fix emacs/vi lksh
2012-06-28 20:14:17 +00:00
tg
ea01d80833
hackish work-around the lexer to make alias definitions in mksh -c
...
work (Closes : #517009 ) and mention in the manpage why they sometimes
do not work (doing so for COMSUBs is not worth the effort)
2012-06-28 20:05:11 +00:00
tg
d824683000
ensure that case end tokens are not mixed up ( Closes : #220272 )
...
XXX token/tpeek/musthave should rescan the last input lexems
XXX if the new cf passed doesn't match the last cf passed
2012-06-28 20:04:02 +00:00
tg
0c3aed77e0
fix trimming with positional parameters ( Closes : #48453 )
2012-06-28 20:03:20 +00:00
tg
1fa4453946
mh… all I’m gonna hack on upstream today… fix -t for manpage generation and cleanup code snippets; bump vsn; sync clog
2012-06-26 19:33:33 +00:00
tg
c212458922
bump for mksh with lksh-except-long, so we get the ball moving
2012-06-26 18:11:05 +00:00
tg
2621715a17
fix two inverse logic mistakes (I’m apparently r̲e̲a̲l̲l̲y̲ fond of them… ☹)
2012-06-25 16:34:58 +00:00
tg
5386859b3f
also get back octal crap for LEGACY KSH
2012-06-25 16:31:18 +00:00
tg
884fdef2b2
first LEGACY changes: keep filedescriptors always open; revert to historic ‘set -- $(getopt …)’ behaviour
2012-06-25 16:17:54 +00:00
tg
967e929e98
add basic LEGACY KSH mode (Build.sh -L), no changes yet
2012-06-25 16:05:10 +00:00
tg
6f1078606e
bump after dealing with all things Benny had Coverity find
...
remainging CIDs not listed are either
• false positive (bug in coverity)
• intentional (possibly with lint override coverity doesn't parse)
• VLA (XXX find out how to mix C99 and ANSI VLAs)
• things flagged as possible resource leaks I have no idea about
(no biggie though, and only in error cases I think)
2012-06-24 20:39:26 +00:00
tg
3125146b43
Fix typeset issues (LP: #993847 )
...
This was actually more evil:
• use a recursive function to display blocks in reverse order,
so that local variable values overwrite global ones
• add array support to typeset -p (from typeset -p -)
• display 'set -A varname' line before setting values, for -p
• if -p got arguments, only display those (from the innermost scope)
Also, the usual amount of code cleanup…
2012-05-09 23:21:00 +00:00
tg
f34cae3997
keep up
2012-05-04 22:44:34 +00:00
tg
5488e79d3b
introduce a nosymlink check category (idea by RT); pass it to test.sh; use cp if ln -s fails (me)
2012-05-04 21:42:51 +00:00
tg
b67de6ba17
add experimental code to use sigprocmask+pause+sigprocmask ipv sigsuspend (and harden j_sigchld handler for that) to improve working on BeOS 5.0 and Coherent UNIX, found by RT
2012-04-27 16:16:23 +00:00
tg
5204e7cc4f
after discussion with ciruZ, switch mksh from NZAT to NZAAT fully
...
to get rid of the bias introduced by making the hash never zero
… he also pointed out a memory (heap) usage optimisation… which
may impact code size a bit though as I’d need to pass an additional
argument on hashtable function calls… or, forgo the benefit of not
having to pointer-align the key in the structure, which can be as
much as 3/7 octets per item, heap storage… OTOH the saved space is
4/8 octets per not-allocated item, possibly some code (use of an
multiply-add opcode), but the function call overhead/cost would
possibly be quite a bit… I guess I’ll have to measure…
2012-04-22 21:50:35 +00:00
tg
5eea59ad57
rewrite maketemp() obsoleting tempnam(3) and mkstemp(3) external deps
2012-04-14 16:07:48 +00:00
tg
5b4d0dbbc5
drop all deprecated code, you have been warned
2012-04-07 11:19:53 +00:00