NetBSD/bin/sh
kre 16d8557100 PR bin/53550
Here we go again...   One more time to redo how here docs are
processed (it has been a few years since the last time!)

This is actually a relatively minor change, mostly to timimg
(to just when things happen).   Now here docs are expanded at the
same time the "filename" word in a redirect is expanded, rather than
later when the heredoc was being sent to its process.  This actually
makes things more consistent - but does break one of the ATF tests
which was testing that we were (effectively) internally inconsistent
in this area.

Not all shells agree on the context in which redirection expansions
should happen, some make any side effects visible to the parent shell
(the majority do) others do the redirection expansions in a subshell
so any side effcts are lost.   We used to have a foot in each camp,
with the majority for everything but here docs, and the minority for
here docs.   Now we're all the way with LBJ ... (or something like that).
2021-11-22 05:17:43 +00:00
..
USD.doc Fix "every" typo in quote from The Mythical Man-Month 2018-09-14 05:59:10 +00:00
bltin Fix a bug in the built-in echo in /bin/sh reported in private mail by 2021-05-18 21:39:06 +00:00
funcs
Makefile sh: remove no-op 'continue' from do-while-0 loop 2021-10-10 08:35:34 +00:00
TOUR
alias.c Allocate alias pointers for qsort() to use on the stack, rather than 2019-02-09 09:11:07 +00:00
alias.h Revamp aliases - as dumb an idea as they are, if we're going 2018-12-03 06:40:26 +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 Ensure that all of the POSIX standard utilities are correctly 2021-11-10 18:25:52 +00:00
cd.c Make pwd (both /bin/pwd and the /bin/sh built-in version) check for 2021-11-16 16:57:15 +00:00
cd.h
error.c DEBUG mode changes only. NFC (NC) for any normally compiled shell. 2021-11-10 15:26:34 +00:00
error.h PR bin/53919 2019-02-04 11:16:41 +00:00
eval.c PR bin/53550 2021-11-22 05:17:43 +00:00
eval.h PR bin/53919 2019-02-04 11:16:41 +00:00
exec.c PR bin/56491 2021-11-16 11:28:29 +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 PR bin/53550 2021-11-22 05:17:43 +00:00
expand.h PR bin/53550 2021-11-22 05:17:43 +00:00
histedit.c Quote the filenames like before 2021-09-14 15:04:09 +00:00
init.h
input.c PR bin/55979 2021-02-16 15:30:26 +00:00
input.h PR bin/48875 (is related, and ameliorated, but not exactly "fixed") 2018-08-19 23:50:27 +00:00
jobs.c sh: remove useless do-while-0 loop 2021-10-10 18:46:25 +00:00
jobs.h Add jobs -Z (like in zsh(1)) to setproctitle(3). 2021-09-11 20:43:32 +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 Use a type-correct end marker for strstrcat() rather than NULL, as 2021-10-26 10:07:20 +00:00
main.h When forking a child shell, arrange for errors/exit to always unwind 2018-12-03 02:38:30 +00:00
memalloc.c Use a type-correct end marker for strstrcat() rather than NULL, as 2021-10-26 10:07:20 +00:00
memalloc.h Use a type-correct end marker for strstrcat() rather than NULL, as 2021-10-26 10:07:20 +00:00
miscbltin.c Detect write errors to stdout, and exit(1) from some built-in 2021-11-16 11:27:50 +00:00
miscbltin.h
mkbuiltins
mkinit.sh Use printf, rather than echo (via echo redefined as a function that 2018-12-05 09:20:18 +00:00
mknodenames.sh In the older debug code (not using the new macros added in the 2018-08-18 03:09:37 +00:00
mknodes.sh Add some error checking, and stop assuming what the input 2019-01-19 13:08:50 +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 - Add command completion (from FreeBSD) 2021-08-15 10:17:55 +00:00
mystring.c Remove atoi() 2018-07-13 22:43:44 +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 PR bin/53550 2021-11-22 05:17:43 +00:00
option.list Avoid long option names that differ only in character case. 2018-11-23 20:40:06 +00:00
options.c PR bin/56464 2021-10-26 00:05:38 +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 Add a couple of macro definitions for dealing with shell I/O errors. 2021-11-10 15:58:38 +00:00
parser.c Fix value of ${LINENO} in "for" commands. 2021-11-16 11:25:44 +00:00
parser.h Delete a no-longer-used #define that referred to a struct field that 2019-02-13 21:40:50 +00:00
redir.c PR bin/53550 2021-11-22 05:17:43 +00:00
redir.h Improve the solution for the 2nd access to a fd which shouldn't 2021-09-15 18:29:45 +00:00
sh.1 Improve the however-many-negatives wording even more. 2021-11-21 16:23:20 +00:00
shell.h PR bin/56464 2021-10-26 00:05:38 +00:00
show.c bin: remove unnecessary lint comment CONSTCOND 2021-09-10 22:11:03 +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 a couple of comments. NFC. 2019-02-04 09:56:48 +00:00
syntax.h Finish the fixes from Feb 4 for handling of random data that 2019-02-27 04:10:56 +00:00
trap.c DEBUG mode changes only. NFC (NC) for any normally compiled shell. 2021-11-10 15:26:34 +00:00
trap.h Make pendingsigs forward declaration match the definition. 2018-12-03 10:53:29 +00:00
var.c Fix the fix to a typo in one of the comments. 2021-08-09 11:29:30 +00:00
var.h Alter a design botch when magic (self modifying) variables 2018-12-04 14:03:30 +00:00
version.h The time has come, the Walrus said... (but no shoes, 2018-12-12 12:16:42 +00:00