Commit Graph

3060 Commits

Author SHA1 Message Date
tg f5c804d416 R55 2017-04-12 18:33:23 +00:00
tg a0993c690c finally document FPOSIX and FSH delta 2017-04-12 18:30:58 +00:00
tg cad44b9f01 fix test operator comment descriptions 2017-04-12 17:46:29 +00:00
tg 833cb27f5c add test -v, initially from Martijn Dekker 2017-04-12 17:38:46 +00:00
tg 1513145b0e ok, you’ve got a point there 2017-04-12 17:08:49 +00:00
tg 30cae62468 (very few) fixes and a couple of workarounds for Coverity 2017-04-12 16:46:23 +00:00
tg efe13f6942 now we have cheap cta move them into compile time 2017-04-12 16:01:45 +00:00
tg 86cb621c88 fix ^O if modified; LP#1675842 2017-04-12 15:54:47 +00:00
tg 0ec3cfee0d make compile-time asserts simpler 2017-04-12 15:23:31 +00:00
tg 6cd65f7a6c Clarify the effect of exit and return in a subshell
From: Jean Delvare <jdelvare@suse.de>
2017-04-11 17:40:41 +00:00
tg 15e4861f71 disambiguate $((…)) vs. $((…)…) in “typeset -f” output 2017-04-11 12:34:04 +00:00
tg ca6bd1f99b make -masm=intel safe: don’t call a module-global variable “es” 2017-04-08 20:35:03 +00:00
tg fae945962b allow 'eval break', from Martijn Dekker
also, more string pooling, while here
2017-04-08 01:07:18 +00:00
tg cadc884008 put the hyphen-minus back into the allowed alias name characters, for
Steffen Nurpmeso <steffen@sdaoden.eu>, except disallow it at the start
2017-04-06 19:02:07 +00:00
tg 6f991beb90 last tweak, to demonstrate brokenness of the old code 2017-04-06 02:15:22 +00:00
tg 3909a42540 fix reentrancy of 'typeset -f' output in the face of aliases; also,
move alias handling for COMSUBs and friends to parse time by request
of Martijn Dekker (and for consistency with function definitions)
2017-04-06 01:59:58 +00:00
tg 094cce63c5 something comfy 2017-04-06 01:46:42 +00:00
tg e00f693cba limit alias characters to what POSIX requires 2017-04-06 00:53:35 +00:00
tg bcde17a8fc streamline some error messages 2017-04-06 00:41:42 +00:00
tg e52d30ac2e plug a small memory leak 2017-04-05 22:54:51 +00:00
tg 397e1398d9 fix small inaccuracy 2017-04-03 02:10:49 +00:00
tg 95b7fcb4fc komh reports that OS/2 has no chance of supporting UTF-8 (like MSYS) 2017-04-03 02:08:57 +00:00
tg fa5cfa12ed string pooling, and more consistent look for error messages 2017-04-02 16:47:43 +00:00
tg 0e2c9e55f8 fix typeset -p x[2] 2017-04-02 16:25:23 +00:00
tg fd1dda2401 refactor global(x) into isglobal(x, true) 2017-04-02 16:07:04 +00:00
tg ab976fd8d3 move c_typeset() to var.c so we have access to either array_index_calc() or innermost_refflag for 'typeset -p x[2]' 2017-04-02 15:51:20 +00:00
tg ced705ae04 handle multibyte backspace in ^R 2017-04-02 15:43:24 +00:00
tg b22af76755 do not output incomplete multibyte chars in ^R 2017-04-02 15:42:59 +00:00
tg b446727285 do not use getenv() to allow users to change OS2_SHELL during the session 2017-04-02 15:02:40 +00:00
tg 718d397fff merge mksh-os2 by KO Myung-Hun <komh@chollian.net> from https://github.com/komh/mksh-os2 2017-04-02 15:00:45 +00:00
mirabilos 9d00cfc02b fix two small setmode()-related bugs 2017-04-02 16:42:44 +02:00
mirabilos a6619d1ef2 use new MKSH_WITH_TEXTMODE for several of the #ifdefs 2017-04-02 16:41:01 +02:00
mirabilos 7fb9d283c5 Merge mksh CVS HEAD 2017-04-02 16:32:16 +02:00
tg 8bf6cad8bc introduce the -T flag to set TEXTMODE (ASCII CR+LF newline support) 2017-04-02 14:14:08 +00:00
tg 344ca3a12a POSuX demands persistent history support, so permit it in lksh
also, use http for links, it’s less demanding than https
2017-04-02 13:38:02 +00:00
tg d68e69bd59 split path-specific ('C:\FOO' instead of '/foo') stuff into MKSH_DOSPATH:
• backslashes as directory separators
• semicolon as $PATH separator
• drive letters are absolute paths
2017-04-02 13:08:07 +00:00
tg 7529e350cf small character classes overhaul:
• make fast character classes even faster by removing the C_SUBOP2 hack
  in favour of a separate seldom-used ksh_issubop2 macro (which also
  makes ctype() side-effect-safe) which is a slower class (no change there)
• optimise cases of ksh_isalphx followed by a ksh_isalnux loop
  (used parsing variable names)
• remove a misleading comment in initctypes() about \0 from pdksh
• rename C_ALPHA to C_ALPHX to make it more clear the underscore is included
• sprinkle a few ord() in there
• add new ksh_isalpha() which tests for [A-Za-z] (slow character class)
• there is no '_:\' drive on OS/2 (which inspired the whole changeset)
2017-03-26 00:10:26 +00:00
mirabilos e216226f68 mostly more KNF 2017-03-26 00:18:21 +01:00
mirabilos 859746b30b fix \r followed by something else than \n or EOF 2017-03-26 00:09:46 +01:00
mirabilos 62a5331aee no strcpy() allowed in BSD code 2017-03-26 00:05:25 +01:00
mirabilos de3d3aa5d2 mostly KNF; afree() can be called with NULL argument 2017-03-25 23:56:09 +01:00
KO Myung-Hun c19b8b104c Merge remote-tracking branch 'mksh/master' 2017-03-22 17:50:23 +09:00
tg 034d0c0269 fixup “\builtin” on OS/2; thanks komh for spotting this 2017-03-22 00:20:53 +00:00
tg e991806f2b fixup LINENO in eval and alias; patch and initial testcase
From: Martijn Dekker <martijn@inlv.org>
2017-03-22 00:20:43 +00:00
tg 9466b49fe8 add standard variable PATHSEP, for better and easier OS/2 support 2017-03-19 22:31:29 +00:00
tg 0530264293 embed 2017-03-19 22:23:45 +00:00
tg 0935faa52b introduce a FAQ, move lots of stuff there and add lots of stuff 2017-03-19 22:04:49 +00:00
tg 1dd5ae69ae fix padding in Lb64encode
undefined array elements read as "" or (arithmetically) 0
so this is ok and works as the lines below expect it
2017-03-19 21:08:25 +00:00
tg 06b2d53ea2 use \\builtin ipv \let] and \set internally 2017-03-19 20:59:29 +00:00
tg 73dca6e90f use the new “\builtin” builtin for quoting, everywhere 2017-03-19 20:36:08 +00:00