Commit Graph

688 Commits

Author SHA1 Message Date
tg a3331fd8e9 fix another cursor positioning glitch (cause for \b at x_col == 0) 2006-11-05 19:48:58 +00:00
tg b03ed7b315 * catch limit off in x_redraw (bytes vs chars vs curpos)
XXX should probably be screenpos, might need to use x_size* here
  XXX this seems to be the tab bug I noticed which we inherited from obsd
* catch backspace if x_col == 0 (XXX better)
2006-11-05 19:35:52 +00:00
tg 47daa0eadc fix issue with line splits inmidst of multibyte characters 2006-11-05 19:15:15 +00:00
tg 6b02a01833 track down an off-by-one and a segfault 2006-11-05 19:12:41 +00:00
tg 33ac6cb0d9 multibyte search-character-{for,back}ward 2006-11-05 17:54:46 +00:00
tg 72f958edea fix deleting AND moving left 2006-11-05 17:34:39 +00:00
tg 15fd277841 delete and move word fore- and backwards by the right amount, too 2006-11-05 17:24:00 +00:00
tg 260eaa9d51 eliminate segfault 2006-11-05 17:11:25 +00:00
tg 5e2e209d51 make this R29(beta), mksh -U turn on (or setlocale), and document. 2006-11-05 17:01:47 +00:00
tg abe860d486 fix deleting forward with count 2006-11-05 16:53:34 +00:00
tg aa867d19bb if we can't delete, keep position, as before 2006-11-05 16:48:17 +00:00
tg dba2dec094 backspace counting
rest'll follow
2006-11-05 16:43:57 +00:00
tg cc261c7968 make backspacing (and moving forward and backward) work perfectly
(in Emacs mode, of course) - for count=1 only though (yet)
2006-11-05 16:41:02 +00:00
tg 4787566fb6 multibyte insertion, the Plan 9 way 2006-11-05 16:10:10 +00:00
tg 08d3457cff utf hack depends on emacs-usemeta off (the default) 2006-11-05 15:36:09 +00:00
tg a373d2e7ab first part of utf-8 ability in mksh, already works pretty well 2006-11-05 15:31:37 +00:00
tg 1547b04e66 add new "set -o utf8-hack", currently no effect
set automatically on startup if we have locale functions (on MirOS)
2006-11-05 12:11:14 +00:00
tg 02c14f2a62 use the same idstring stuff everywhere, makes sense 2006-10-03 19:46:14 +00:00
tg fe3ada7780 sync with src/sys/sys/cdefs.h,v 1.11 2006-09-30 02:23:22 +00:00
tg 7ae68e335c * avoid unaligned memory access causing SIGBUS on IA-64 (Itanic)
(incidentally, the information xor'd now is more random)
  only affects non-arc4random targets
* bump version
2006-09-30 02:13:21 +00:00
tg 367186ecbc something about the strength-reduce bug being fixed 2006-09-29 19:33:48 +00:00
tg c65efd6fd4 of course, I had to screw up
tested on Debian stale:
| Total failed: 1 (as expected)
| Total passed: 213
| tg@flyingfish:~/mk b $ uname -a
| Linux flyingfish 2.6.13.1-grsec-aurisp #1 Wed Sep 28 15:13:07 CEST 2005 i686 GNU/Linux
2006-09-21 22:12:05 +00:00
tg 582aebf1c4 shebang, she don't work with spaces 2006-09-21 22:09:41 +00:00
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