NetBSD/bin/sh
kre b81009ce62 When processing character classes ([:xxx:] inside []), treat a class name
that is longer than we can handle the same way we treat an unknown
class name (as a valid char class which contains nothing, so never
matches).   Previously a "too long" class name invalidated the
class, so [:very-long-name:] would match any of  '[' ':' 'v'  ...
(note: "very-long-name" is not long enough to trigger this, but you
get the idea!)

However, the name itself has a restricted syntax ([[:***:]] is not a
character class, it is a match for one of a '[' ':' or '*', followed by
a ']') which we did not implement - check the syntax of the name before
treating it as a character class (but we do add '_' to alphanumerics
as legal class name characters).
2018-06-22 18:19:41 +00:00
..
USD.doc Reorg docs, part 2: 2014-07-05 19:23:00 +00:00
bltin Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
funcs delete clauses 3,4 2016-02-29 23:50:59 +00:00
Makefile use SUBDIR.roff suggested by uwe@ 2018-06-10 17:55:11 +00:00
TOUR Fix grammar in couple of sentences. 2016-10-25 13:01:59 +00:00
alias.c PR bin/52348 2017-07-24 12:34:45 +00:00
alias.h Adjust to the new alias text libedit API. 2014-06-18 18:17:30 +00:00
arith_token.c Do a better job of reporting invalid numeric constants in arithmetic exprs. 2017-12-17 04:06:03 +00:00
arith_tokens.h Add support for ++ and -- (pre & post) and ',' to arithmetic. 2017-07-24 13:21:14 +00:00
arithmetic.c In uses like $(( var )) (un-dollared vars in arithmetic) we allow 2018-04-21 23:01:29 +00:00
arithmetic.h A better LINENO implementation. This version deletes (well, #if 0's out) 2017-06-07 05:08:32 +00:00
builtins.def DEBUG mode shell update (changes nothing for shells which are not 2017-05-15 20:00:36 +00:00
cd.c DEBUG only changes. Convert the TRACE() calls in the remaining files 2017-07-05 20:00:27 +00:00
cd.h
error.c PR bin/52348 2017-07-24 12:35:12 +00:00
error.h Add __printflike attribution to use vprintf and friends with an argument 2012-03-15 02:02:20 +00:00
eval.c Deal with ref after free found by ASAN when a function redefines 2018-06-22 11:04:55 +00:00
eval.h PR bin/48875 - avoid holding (replaced) file descriptors open when running a 2016-05-09 21:03:10 +00:00
exec.c Deal with ref after free found by ASAN when a function redefines 2018-06-22 11:04:55 +00:00
exec.h Deal with ref after free found by ASAN when a function redefines 2018-06-22 11:04:55 +00:00
expand.c When processing character classes ([:xxx:] inside []), treat a class name 2018-06-22 18:19:41 +00:00
expand.h A better LINENO implementation. This version deletes (well, #if 0's out) 2017-06-07 05:08:32 +00:00
histedit.c Now libedit supports embedded mode switch sequence, improve sh 2017-06-28 13:46:06 +00:00
init.h
input.c NFC - DEBUG mode change only - add some sanity to a debug printf format string 2017-08-19 21:13:11 +00:00
input.h Implement PS1, PS2 and PS4 expansions (variable expansions, arithmetic 2017-06-30 23:02:56 +00:00
jobs.c In addition to previous the which fixed a (harmless) MSAN detected ref 2017-12-30 23:24:19 +00:00
jobs.h Add '-n' and '-p var' args to the wait command (-n: wait for any, 2017-10-28 06:36:17 +00:00
machdep.h
mail.c If we are going to keep the MAILPATH % hack, then at least do something 2017-06-04 20:28:13 +00:00
mail.h
main.c drop main() prototype 2018-01-23 22:12:52 +00:00
main.h
memalloc.c Many internal memory management type fixes. 2017-06-17 07:22:12 +00:00
memalloc.h Many internal memory management type fixes. 2017-06-17 07:22:12 +00:00
miscbltin.c Fix inconsistent whitespace 2017-05-13 15:03:34 +00:00
miscbltin.h
mkbuiltins
mkinit.sh General KNF and source code cleanups, avoid scattering the 2016-03-27 14:34:46 +00:00
mknodenames.sh It is amazing what nonsense appears to work sometimes... (all my nonsense too!) 2017-06-19 11:55:07 +00:00
mknodes.sh Deal with ref after free found by ASAN when a function redefines 2018-06-22 11:04:55 +00:00
mkoptions.sh Sort options with long names that differ only by char case in 2017-11-15 09:21:19 +00:00
mktokens Add a comment explaining the ordering reltionship of the tokens 2017-07-26 03:46:54 +00:00
myhistedit.h Now libedit supports embedded mode switch sequence, improve sh 2017-06-28 13:46:06 +00:00
mystring.c Add const. 2013-04-28 17:01:28 +00:00
mystring.h
nodes.c.pat Deal with ref after free found by ASAN when a function redefines 2018-06-22 11:04:55 +00:00
nodetypes Remove some left over baggage from the LINENO v1 implementation that 2017-06-08 13:12:17 +00:00
option.list Remove the -X option from SMALL shells (as used on boot floppies, 2017-11-21 03:42:39 +00:00
options.c Remove the -X option from SMALL shells (as used on boot floppies, 2017-11-21 03:42:39 +00:00
options.h Arrange for set -o and $- output to be sorted, rather than more 2017-05-28 00:38:01 +00:00
output.c Remove the -X option from SMALL shells (as used on boot floppies, 2017-11-21 03:42:39 +00:00
output.h Remove the -X option from SMALL shells (as used on boot floppies, 2017-11-21 03:42:39 +00:00
parser.c PR bin/53201 2018-04-21 21:32:14 +00:00
parser.h Add support for $'...' quoting (based upon C "..." strings, with \ expansions.) 2017-08-21 13:20:49 +00:00
redir.c DEBUG mode only change. Add some tracing. NFC (without DEBUG). 2017-11-15 09:21:48 +00:00
redir.h Include redirections in trace output from "set -x" 2017-06-30 23:01:21 +00:00
sh.1 Remove Pps without effect. 2018-05-03 05:11:43 +00:00
shell.h NFC: DEBUG mode change - add a couple more TRACE macros to allow for 2017-07-26 03:44:43 +00:00
show.c NFC: DEBUG only change - provide an externally visible (to the DEBUG sh 2017-06-30 23:00:40 +00:00
show.h NFC: DEBUG only change - provide an externally visible (to the DEBUG sh 2017-06-30 23:00:40 +00:00
syntax.c Add support for $'...' quoting (based upon C "..." strings, with \ expansions.) 2017-08-21 13:20:49 +00:00
syntax.h Add support for $'...' quoting (based upon C "..." strings, with \ expansions.) 2017-08-21 13:20:49 +00:00
trap.c DEBUG and white space changes only. Convert TRACE() calls for DEBUg mode 2017-07-05 19:47:11 +00:00
trap.h report the signal that wait was interrupted by, which is not always SIGINT 2015-08-22 12:12:47 +00:00
var.c Implement the -X option - an apparent variant of -x which sends all trace 2017-11-19 03:23:01 +00:00
var.h Extract the variable name validity test from setname() into a 2017-10-28 03:59:11 +00:00
version.h replace with standard copyright :-) 2016-03-31 16:28:23 +00:00