NetBSD/bin/sh
kre 66ac24c3bf When we exit from running off the end of the input file (which
includes typing ^D) make sure LINENO is set to indicate the last
(actually one past last) line in the input file, rather than
whatever it was set to by the last command that was actually
executed (which could be some line in a function defined in
some other file).

No effect on exit via an explicit exit command - that would already
set the line number correctly.
2019-01-19 14:20:22 +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
USD.doc Fix "every" typo in quote from The Mythical Man-Month 2018-09-14 05:59:10 +00:00
alias.c Revamp aliases - as dumb an idea as they are, if we're going 2018-12-03 06:40:26 +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 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 PR bin/48875 (is related, and ameliorated, but not exactly "fixed") 2018-08-19 23:50:27 +00:00
eval.c When an error occurs in a builtin from which we do not exit 2019-01-09 10:57:43 +00:00
eval.h Cleanup traps a bit - attempt to handle weird uses in traps, such 2018-12-03 06:43:19 +00:00
exec.c Fix several bugs in the command / type builtin ( including PR bin/48499 ) 2018-07-25 14:42:50 +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 Yet another foray into the mysterious world of $@ -- this time 2018-12-03 06:41:30 +00:00
expand.h Rationalise (slightly) the way that expansions are processed 2018-11-18 17:23:37 +00:00
histedit.c Remove atoi() 2018-07-13 22:43:44 +00:00
init.h
input.c Redo 1.65 in a simpler way. This is the bit rot avoidance code 2019-01-16 07:14:17 +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 When forking a child shell, arrange for errors/exit to always unwind 2018-12-03 02:38:30 +00:00
jobs.h Whitespace cleanup from last update. NFC. 2018-09-11 03:30:40 +00:00
machdep.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
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 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
main.c When we exit from running off the end of the input file (which 2019-01-19 14:20:22 +00:00
main.h When forking a child shell, arrange for errors/exit to always unwind 2018-12-03 02:38:30 +00:00
Makefile Change the (commented out) setting of -DDEBUG to the form that 2018-10-28 18:13:47 +00:00
memalloc.c Fix (hopefully) the problem reported on current-users by Patrick Welche. 2018-08-22 20:08:54 +00:00
memalloc.h Fix (hopefully) the problem reported on current-users by Patrick Welche. 2018-08-22 20:08:54 +00:00
miscbltin.c Fix inconsistent whitespace 2017-05-13 15:03:34 +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 Now libedit supports embedded mode switch sequence, improve sh 2017-06-28 13:46:06 +00:00
mystring.c Remove atoi() 2018-07-13 22:43:44 +00:00
mystring.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
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 Avoid long option names that differ only in character case. 2018-11-23 20:40:06 +00:00
options.c Remove atoi() 2018-07-13 22:43:44 +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 pgetc_linecont() needs to use pgetc() rather than pgetc_macro() 2019-01-15 14:17:49 +00:00
parser.h PR standards/42829 2018-12-11 13:31:20 +00:00
redir.c Fix typo: O_ALTIO -> O_ALT_IO 2018-11-26 20:03:39 +00:00
redir.h Include redirections in trace output from "set -x" 2017-06-30 23:01:21 +00:00
sh.1 Reverse a decision made when the printsignals() routines from 2018-12-12 20:22:43 +00:00
shell.h Delete the old style (no longer used) DEBUG mode TRACE compat macro 2018-10-18 05:28:45 +00:00
show.c Remove a DEBUG mode transition mechanism (for the transition from 2018-10-18 04:44:27 +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 Revamp aliases - as dumb an idea as they are, if we're going 2018-12-03 06:40:26 +00:00
syntax.h Revamp aliases - as dumb an idea as they are, if we're going 2018-12-03 06:40:26 +00:00
TOUR Fix grammar in couple of sentences. 2016-10-25 13:01:59 +00:00
trap.c Finish (hopefully) the second half of 1.47 ... make sure 2019-01-18 06:28:09 +00:00
trap.h Make pendingsigs forward declaration match the definition. 2018-12-03 10:53:29 +00:00
var.c Implement: 2018-12-12 11:51:33 +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