MirBSD Korn Shell for Jehanne
Go to file
tg e21a2166f7 use a different approach to the $"…" problem:
take the states that may open a string, only permit them by virtue of
moving the code out of Subst: to handle $+" and $+' at all; then add
S[Q]BRACE to that

side benefits:
• clearer, cleaner code flow
• smaller code
• better “business logic” ☺
• defuses one heavy use of duff’s device a bit
2013-02-17 06:05:02 +00:00
Build.sh backpedal with $'…' and $"…" interpolation 2013-02-17 05:40:17 +00:00
check.pl rewrite the EINTR importing code with help of stsc from #nosec on IRC, 2012-04-06 12:22:14 +00:00
check.t backpedal with $'…' and $"…" interpolation 2013-02-17 05:40:17 +00:00
dot.mkshrc provide a layer of locality to FUNSUBs; get rid of a fork for each PS1 thus 2013-02-10 23:30:47 +00:00
edit.c improve DEBUG_LEAKS handling and fix freeing some locs 2013-02-10 19:05:37 +00:00
emacsfn.h • merge printf from OpenBSD 2010-07-17 22:09:40 +00:00
eval.c get rid of unneeded variables ⇒ error handling (that wasn’t there 2013-02-10 23:43:59 +00:00
exec.c backpedal with $'…' and $"…" interpolation 2013-02-17 05:40:17 +00:00
expr.c prevent more access to invalid memories (Debian #700604) 2013-02-15 18:36:48 +00:00
funcs.c fix running the ERR and EXIT traps in case of set -e and/or eval (includes Debian #696823) 2013-01-01 20:45:04 +00:00
histrap.c 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
jobs.c 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
lalloc.c • access(2) is broken in at least kFreeBSD 9.0 as “modern” OS, so bring 2011-09-07 15:24:22 +00:00
lex.c use a different approach to the $"…" problem: 2013-02-17 06:05:02 +00:00
main.c as a more general solution to fd leak detection, just do CLOEXEC manually 2013-02-10 21:42:16 +00:00
Makefile backpedal with $'…' and $"…" interpolation 2013-02-17 05:40:17 +00:00
misc.c thanks to ISC (Interactive) Unix, we now know a few samples of errnos 2012-12-17 23:18:11 +00:00
mksh.1 • Document invalid ${a/b/c} patterns in manpage (Debian #698678) 2013-02-11 17:17:59 +00:00
sh_flags.h fix emacs/vi lksh 2012-06-28 20:14:17 +00:00
sh.h backpedal with $'…' and $"…" interpolation 2013-02-17 05:40:17 +00:00
shf.c while thinking about mirlibₘᵢₙc I figured that sys_errlist[] entries may be NULL 2013-01-01 03:32:44 +00:00
strlcpy.c more KNF, mostly whitespace, this time more manual labour applying style(9) 2009-06-10 18:12:51 +00:00
syn.c 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
tree.c Keep LLVM+Clang from nagging about “"foo" + 1 ≠ "foo1"” warning. 2012-12-04 01:10:35 +00:00
var_spec.h oops, this list is s’pos’ta be sorted 2012-11-30 16:45:25 +00:00
var.c add a few assertions for LLVM+Clang 3.2 scan-build; no !DEBUG changes 2012-12-08 18:30:31 +00:00