CVS commit: src/bin/sh

2021-08-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Aug 15 11:57:17 UTC 2021 Modified Files: src/bin/sh: Makefile Log Message: Add -I to find filecomplete.h To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/bin/sh/Makefile Please note that diffs are not p

CVS commit: src/bin/sh

2021-08-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Aug 15 10:17:55 UTC 2021 Modified Files: src/bin/sh: histedit.c myhistedit.h Log Message: - Add command completion (from FreeBSD) - Use EL_SAFEREAD To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/bin/sh/h

CVS commit: src/bin/sh

2021-08-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Aug 9 11:29:30 UTC 2021 Modified Files: src/bin/sh: var.c Log Message: Fix the fix to a typo in one of the comments. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/bin/sh/var.c Please note that diffs are no

CVS commit: src/bin/sh

2021-05-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed May 26 20:21:52 UTC 2021 Modified Files: src/bin/sh: Makefile Log Message: Use the date tool To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116 src/bin/sh/Makefile Please note that diffs are not public domain

CVS commit: src/bin/sh/bltin

2021-05-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue May 18 21:39:06 UTC 2021 Modified Files: src/bin/sh/bltin: bltin.h echo.c Log Message: Fix a bug in the built-in echo in /bin/sh reported in private mail by Oguz If echo detects an I/O error, it does exit(1) (that's fine) but t

CVS commit: src/bin/sh

2021-04-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Apr 4 13:24:07 UTC 2021 Modified Files: src/bin/sh: eval.c jobs.c jobs.h Log Message: Related to PR bin/48875 Correct an issue found by Oguz and reported in e-mail (on the bug-bash list initially!) with the code changed to dea

CVS commit: src/bin/sh

2021-02-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Feb 16 15:30:26 UTC 2021 Modified Files: src/bin/sh: input.c Log Message: PR bin/55979 Correctly handle (ie: ignore completely) \0 chars (nuls) in the shell command input stream (script, dot file, or stdin). Previously nul char

CVS commit: src/bin/sh

2021-02-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Feb 16 15:30:12 UTC 2021 Modified Files: src/bin/sh: exec.c Log Message: PR bin/55979 This fixes the MSAN detected reference to an unitialised variable (an unitialised field in a struct) which happens when a command is not found

CVS commit: src/bin/sh

2020-09-18 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Fri Sep 18 07:21:26 UTC 2020 Modified Files: src/bin/sh: sh.1 Log Message: Remove superfluous Ed. To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229 src/bin/sh/sh.1 Please note that diffs are not public domain; they a

CVS commit: src/bin/sh

2020-09-17 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 18 06:48:28 UTC 2020 Modified Files: src/bin/sh: sh.1 Log Message: Correct an incorrectly quoted (unquoted, but should be) example used in the "local" built-in command description (pointed out by mrg@ via uwe@ in private e-ma

CVS commit: src/bin/sh

2020-08-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Aug 30 19:45:05 UTC 2020 Modified Files: src/bin/sh: jobs.c Log Message: Since "struct job" gained a pgrp member some time ago now, use it instead of simply assuming that the pid of the first (leftmost) process in a pipeline is t

CVS commit: src/bin/sh

2020-08-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Aug 25 19:42:02 UTC 2020 Modified Files: src/bin/sh: sh.1 Log Message: Idiot typo, generated by an idiot, fixed by the same one. To generate a diff of this commit: cvs rdiff -u -r1.226 -r1.227 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2020-08-21 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Fri Aug 21 08:14:45 UTC 2020 Modified Files: src/bin/sh: sh.1 Log Message: Remove unmatched .El and mark up signal name with Dv. To generate a diff of this commit: cvs rdiff -u -r1.225 -r1.226 src/bin/sh/sh.1 Please note that diff

CVS commit: src/bin/sh

2020-08-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Aug 20 23:19:34 UTC 2020 Modified Files: src/bin/sh: sh.1 Log Message: Man page enhancements. Better describe the command search procedure. Document "trap -P" Describe what works as a function name. More accurate description of

CVS commit: src/bin/sh

2020-08-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Aug 20 23:09:56 UTC 2020 Modified Files: src/bin/sh: eval.c trap.c Log Message: Be less conservative about when we do clear_traps() when we have traps_invalid (that is, when we actually nuke the parent shell's caught traps in a s

CVS commit: src/bin/sh

2020-08-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Aug 20 23:03:17 UTC 2020 Modified Files: src/bin/sh: jobs.c Log Message: Add lots of comments explaining what is happening in here. Also enhance some of the DEBUG mode trace output (nothing visible in a normal shell build). A c

CVS commit: src/bin/sh

2020-08-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Aug 20 16:15:50 UTC 2020 Modified Files: src/bin/sh: trap.c Log Message: Whitespace. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/bin/sh/trap.c Please note that diffs are not public domain; they ar

CVS commit: src/bin/sh

2020-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Aug 19 22:41:47 UTC 2020 Modified Files: src/bin/sh: parser.c Log Message: For now, probably forever, prohibit unquoted $ and ` in the names of functions being defined (they can still be included if quoted). If we parsed the way

CVS commit: src/bin/sh

2020-08-01 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 1 17:56:56 UTC 2020 Modified Files: src/bin/sh: expand.c Log Message: Remove a redundant set of parentheses that were added (along with a extra && or || or something ... forgotten now) as part a failed attempt to fix an earl

CVS commit: src/bin/sh

2020-08-01 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 1 17:51:18 UTC 2020 Modified Files: src/bin/sh: exec.c Log Message: PR bin/55526 Fix a bug that has existed since the "command" command was added in 2003. "command foo" would cause the definition of a function "foo" to be

CVS commit: src/bin/sh

2020-04-23 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Apr 23 09:01:33 UTC 2020 Modified Files: src/bin/sh: eval.c Log Message: Stop forcing the -e option off in the subshell createds for a command substitution. This was inherited in the big "-e" fixup patch set (rev 1.50) of Jan 20

CVS commit: src/bin/sh

2020-04-03 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Fri Apr 3 16:22:23 UTC 2020 Modified Files: src/bin/sh: redir.h Log Message: Don't define max_user_fd in the header. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/bin/sh/redir.h Please note that diffs are no

CVS commit: src/bin/sh

2020-02-20 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Thu Feb 20 18:24:21 UTC 2020 Modified Files: src/bin/sh: sh.1 Log Message: Typo: s/./,/ To generate a diff of this commit: cvs rdiff -u -r1.223 -r1.224 src/bin/sh/sh.1 Please note that diffs are not public domain; they are su

CVS commit: src/bin/sh

2020-02-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Feb 13 05:19:05 UTC 2020 Modified Files: src/bin/sh: expand.c expand.h Log Message: When expanding a here-doc (NXHERE - the type with an unquoted end delim) the output will not be further processed (at all) so there is no need to

CVS commit: src/bin/sh

2020-02-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Feb 7 02:06:13 UTC 2020 Modified Files: src/bin/sh: jobs.c Log Message: Avoid a core dump if a child process that is not one of our children happens to exit while we are waiting for another child to exit. This can happen with c

CVS commit: src/bin/sh

2020-02-06 Thread Santhosh Raju
Module Name:src Committed By: fox Date: Fri Feb 7 01:25:08 UTC 2020 Modified Files: src/bin/sh: main.c Log Message: bin/sh: Fixes -Werror=shadow causing build breaks. Conflicting variable name, sigset_t sigs has been renamed to sigset_t mask Reviewed by: kamil@ To gen

CVS commit: src/bin/sh

2020-02-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Feb 6 20:08:28 UTC 2020 Modified Files: src/bin/sh: main.c Log Message: Actually, the issue with bash (in previous) is more likely that the SIGCHLD is blocked rather than ignored. We want neither. Make sure SIGCHLD is unbloc

CVS commit: src/bin/sh

2020-02-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Feb 6 19:51:59 UTC 2020 Modified Files: src/bin/sh: main.c Log Message: If we are invoked with SIGCHLD ignored, we fail badly, as we assume that we can always wait(2) for our children, and an ignored SIGCHLD prevents that. Rec

CVS commit: src/bin/sh

2020-02-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Feb 5 14:56:26 UTC 2020 Modified Files: src/bin/sh: options.c Log Message: Oops, the previous didn't do what was promised. Rather that ignoring just "--" for exec & "." it ignored any first arg starting '-'. Do it properly. T

CVS commit: src/bin/sh

2020-02-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Feb 4 16:06:59 UTC 2020 Modified Files: src/bin/sh: eval.c options.c Log Message: After bug report 262 (from 2010) https://austingroupbugs.net/view.php?id=252 the Austin Group decided to require processing of "--" by the

CVS commit: src/bin/sh

2019-12-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Dec 21 18:54:15 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: Use fork() rather than vfork() when forking to run a background process with redirects. If we use vfork() and a redirect hangs (eg: opening a fifo) which

CVS commit: src/bin/sh

2019-12-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 10 09:18:37 UTC 2019 Modified Files: src/bin/sh: parser.c Log Message: Correct a typo in a comment, 08x0 was meant to be 0x80 (duh!). NFC. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/bin/sh/parser.c

CVS commit: src/bin/sh

2019-12-08 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 9 00:14:24 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: PR bin/54743 Having traps set should not enforce a fork for the next command, whatever that command happens to be, only for commands which would normally f

CVS commit: src/bin/sh

2019-12-08 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 9 00:14:30 UTC 2019 Modified Files: src/bin/sh: trap.c Log Message: PR bin/54743 If a builtin command or function is the final command intended to be executed, and is interrupted by a caught signal, the trap handler for tha

CVS commit: src/bin/sh

2019-05-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat May 4 02:52:55 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: When a return occurs in the test part of a loop statement (while/until) (inside a function or dot script) the exit status of that return statement should be

CVS commit: src/bin/sh

2019-04-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Apr 25 03:54:10 UTC 2019 Modified Files: src/bin/sh: trap.c Log Message: Better interactive SIGINT handling (when a trap is set), and other cleanups to the trap code. No longer silently ignore attempts to do anything other than

CVS commit: src/bin/sh

2019-04-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Apr 22 04:10:33 UTC 2019 Modified Files: src/bin/sh: sh.1 Log Message: Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.222 -r1.223 src/bin/sh/sh.1 Please note that diffs are not public domain; they

CVS commit: src/bin/sh

2019-04-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Apr 22 04:04:36 UTC 2019 Modified Files: src/bin/sh: sh.1 Log Message: PR standards/40554 Update the description of the <& and >& redirection operators (as indicated would happen in a message appended to the PR a week ago, which

CVS commit: src/bin/sh

2019-04-15 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Mon Apr 15 20:35:25 UTC 2019 Modified Files: src/bin/sh: sh.1 Log Message: -compact must come last To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/bin/sh/sh.1 Please note that diffs are not public domain; they

CVS commit: src/bin/sh

2019-03-26 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Mar 26 13:32:26 UTC 2019 Modified Files: src/bin/sh: jobs.c Log Message: Fix a logic botch that prevented "wait -n" (with no pid args) from finding a job that had previously terminated. Now in that case JOBWANTED is set on all j

CVS commit: src/bin/sh

2019-02-28 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Mar 1 06:15:02 UTC 2019 Modified Files: src/bin/sh: redir.c Log Message: The previous commit was obviously made by a broken mindless automoton with an IQ that underflows when one attempts to enter it as an unnormalised 160 bit l

CVS commit: src/bin/sh

2019-02-28 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Mar 1 05:23:35 UTC 2019 Modified Files: src/bin/sh: redir.c Log Message: Inspired by (really the need for) Maya's patch to pkgsrc/shells/bash to allow bash to build fdflags on Solaris 10, here are some mods that fix that, and so

CVS commit: src/bin/sh

2019-02-26 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Feb 27 04:10:56 UTC 2019 Modified Files: src/bin/sh: expand.c parser.c syntax.h Log Message: Finish the fixes from Feb 4 for handling of random data that matches the internal CTL* chars. The earlier fixes handled CTL* char value

CVS commit: src/bin/sh

2019-02-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Feb 14 13:27:59 UTC 2019 Modified Files: src/bin/sh: show.c Log Message: DEBUG mode only change. When pretty-printing a word from a parse tree, don't display a CTLESC which is there only to protect a CTL* char (a data char that

CVS commit: src/bin/sh

2019-02-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Feb 14 11:15:24 UTC 2019 Modified Files: src/bin/sh: builtins.def sh.1 var.c Log Message: Add the "specialvar" built-in command. Discussed (well, mentioned anway) on tech-userlevel with no adverse response. This allows the mag

CVS commit: src/bin/sh

2019-02-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Feb 13 21:40:50 UTC 2019 Modified Files: src/bin/sh: parser.h Log Message: Delete a no-longer-used #define that referred to a struct field that no longer exists. Also correct a couple of typos in comments.NFC. To generate

CVS commit: src/bin/sh

2019-02-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Feb 10 19:21:52 UTC 2019 Modified Files: src/bin/sh: histedit.c Log Message: Remove a function prototype which was added to in 2005. I think we can trust it to be stable by now, and doin't need the dup. To generate a diff of t

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:50:31 UTC 2019 Modified Files: src/bin/sh: parser.c Log Message: Add a check that the file descriptor mentioned in a N> or N< type redirect operator is within range of what the code tree node can hold. Currently this

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:38:11 UTC 2019 Modified Files: src/bin/sh: var.c Log Message: DTRT when dynamically generated variables return "unset" instead of a value. There are none which do that at the minute, so this is a NFCI change, which is

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:34:43 UTC 2019 Modified Files: src/bin/sh: redir.c Log Message: DEBUG mode change only. Add one extra trace point. NFC for normal builds. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/bin/sh/red

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:33:21 UTC 2019 Modified Files: src/bin/sh: main.c Log Message: When an interactive shell exits due to an EOF on stdin, send a newline to stderr (to follow the previous prompt) and cleanup more nicely. To generate a di

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:31:33 UTC 2019 Modified Files: src/bin/sh: jobs.c Log Message: In the unlikely event that restarting a job fails (the fg bg and various %x commands) generate the most useful error message (from errno value) rather than

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:20:47 UTC 2019 Modified Files: src/bin/sh: input.c Log Message: KNF - white space changes, indent using tabs not spaces. NFC. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/bin/sh/input.c Please

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:17:59 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: DEBUG mode build changes - add extra trace output. NFC for any normal shell build. To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174 src/bi

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:15:22 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: Delete extern decl for trap[] - hasn't been needed for a while now. To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 src/bin/sh/eval.c Ple

CVS commit: src/bin/sh

2019-02-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 09:11:07 UTC 2019 Modified Files: src/bin/sh: alias.c Log Message: Allocate alias pointers for qsort() to use on the stack, rather than directly via malloc() so they get cleaned up correctly on error/intr. NFCI. To gene

CVS commit: src/bin/sh

2019-02-08 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Feb 9 03:35:55 UTC 2019 Modified Files: src/bin/sh: eval.c histedit.c input.c jobs.c memalloc.c redir.c var.c Log Message: INTON / INTOFF audit and cleanup. No visible differences expected - there is a remote chance that some i

CVS commit: src/bin/sh

2019-02-04 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Feb 4 12:18:36 UTC 2019 Modified Files: src/bin/sh: sh.1 Log Message: Remove leading zero from date. To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219 src/bin/sh/sh.1 Please note that diffs are not public domain

CVS commit: src/bin/sh

2019-02-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Feb 4 11:16:41 UTC 2019 Modified Files: src/bin/sh: error.c error.h eval.c eval.h main.c parser.c sh.1 Log Message: PR bin/53919 Suppress shell error messages while expanding $ENV (which also causes errors while expanding $PS1

CVS commit: src/bin/sh

2019-02-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Feb 4 09:56:48 UTC 2019 Modified Files: src/bin/sh: syntax.c Log Message: Add a couple of comments. NFC. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/bin/sh/syntax.c Please note that diffs are not public

CVS commit: src/bin/sh

2019-02-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Feb 4 09:56:26 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: Fix an old bug (very old) that was made worse in 1.128 (the "${1+$@}" fixes) where a variable containing a CTL char (the only possibility used to be CTLES

CVS commit: src/bin/sh

2019-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 22 14:32:17 UTC 2019 Modified Files: src/bin/sh: parser.c Log Message: lexical analysis fixes. This fixes the tests just committed in src/tests/bin/sh/t_here.sh The "magicq" magic was all wrong - it cannot be simply a para

CVS commit: src/bin/sh

2019-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 22 13:48:28 UTC 2019 Modified Files: src/bin/sh: parser.c shell.h show.c Log Message: NFCI - DEBUG mode only change. Add tracing of lexical analyser operations. This is deliberately kept out of the normal "all on" set as i

CVS commit: src/bin/sh

2019-01-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 21 14:29:12 UTC 2019 Modified Files: src/bin/sh: error.c shell.h show.c Log Message: DEBUG mode shell cleanups (NFC for any normal shell). Add an error DEBUG trace in exraise() (when the shell has detected some error or sign

CVS commit: src/bin/sh

2019-01-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 21 14:24:44 UTC 2019 Modified Files: src/bin/sh: parser.c Log Message: Fix an amazing crazy botch (of mine) when expanding prompt strings (PS1 etc) which, if the shell were already exiting, and a prompt were to be expanded (w

CVS commit: src/bin/sh

2019-01-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 21 14:18:59 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: When we are about to execute something, and the traps are invalid (which means this is the very first execution in a new subshell) clear the traps completel

CVS commit: src/bin/sh

2019-01-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 21 14:09:24 UTC 2019 Modified Files: src/bin/sh: sh.1 Log Message: Add an explanation of the error (warning) RANDOM initialisation failed when the shell might print after RANDOM has been reseeded (which includes at sh

CVS commit: src/bin/sh

2019-01-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 21 13:27:29 UTC 2019 Modified Files: src/bin/sh: var.c Log Message: Fix an off by one buffer length problem. Fortunately, it was off by one in the "safe" way (it was ensuring the buffer always ended in 2 \0 characters ... o

CVS commit: src/bin/sh

2019-01-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 19 14:20:22 UTC 2019 Modified Files: src/bin/sh: main.c Log Message: 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) lin

CVS commit: src/bin/sh

2019-01-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 19 13:08:50 UTC 2019 Modified Files: src/bin/sh: mknodes.sh Log Message: Add some error checking, and stop assuming what the input will necessarily contain. Allow defined nodes to use any intN_t or unintN_t (as well as plai

CVS commit: src/bin/sh

2019-01-17 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jan 18 06:28:09 UTC 2019 Modified Files: src/bin/sh: trap.c Log Message: Finish (hopefully) the second half of 1.47 ... make sure that when traps are marked as invalid, we never use them for anything except output from the trap c

CVS commit: src/bin/sh

2019-01-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 16 07:14:17 UTC 2019 Modified Files: src/bin/sh: input.c Log Message: Redo 1.65 in a simpler way. This is the bit rot avoidance code that is #if 0'd and (still) has never been compiled (most likely never will be.) While he

CVS commit: src/bin/sh

2019-01-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 15 14:23:56 UTC 2019 Modified Files: src/bin/sh: input.c Log Message: Don't use quoteflag when deciding if the word after an alias should be looked up as a potential following alias - if the first expands to a string that end

CVS commit: src/bin/sh

2019-01-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 15 14:17:50 UTC 2019 Modified Files: src/bin/sh: parser.c Log Message: pgetc_linecont() needs to use pgetc() rather than pgetc_macro() so the fake char returned by the latter when an alias ends (which is there so we can corre

CVS commit: src/bin/sh

2019-01-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 9 11:09:16 UTC 2019 Modified Files: src/bin/sh: input.c Log Message: Correct an (old) typo in a comment. NFC - it is just a comment. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/bin/sh/input.c Pleas

CVS commit: src/bin/sh

2019-01-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 9 11:08:09 UTC 2019 Modified Files: src/bin/sh: input.c Log Message: Fix the code taken from FreeBSD 2 revisions back, which fixed aliases, to actually do what it was supposed to do, and not just come close by accident. (H

CVS commit: src/bin/sh

2019-01-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 9 11:04:54 UTC 2019 Modified Files: src/bin/sh: input.c Log Message: Update some dead (#if 0'd) code that is never called to cope with the changes made in the previous revision, in an attempt to avoid bit rot. Untested (unc

CVS commit: src/bin/sh

2019-01-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 9 10:59:21 UTC 2019 Modified Files: src/bin/sh: parser.c Log Message: A similar fix to that added in 1.169 of eval.c, but here for when processing command substitutions. If there is an error while processing, the any pendi

CVS commit: src/bin/sh

2019-01-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 9 10:57:44 UTC 2019 Modified Files: src/bin/sh: eval.c Log Message: When an error occurs in a builtin from which we do not exit (a normal builtin, though those are not genrally an issue for this problem, or a special builtin

CVS commit: src/bin/sh

2018-12-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 12 12:56:17 UTC 2018 Modified Files: src/bin/sh: sh.1 Log Message: More fixes for the SYNPOSIS of the readonly built-in. The SYNOPSIS for "readonly -q" cannot have the -q be optional ... Also harmonise the output appearance

CVS commit: src/bin/sh

2018-12-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 12 12:30:59 UTC 2018 Modified Files: src/bin/sh: sh.1 Log Message: Fix Oo Op Oc syntax error (which seemed to work OK to me) Pointed out by wiz@ To generate a diff of this commit: cvs rdiff -u -r1.213 -r1.214 src/bin/sh

CVS commit: src/bin/sh

2018-12-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 12 12:16:43 UTC 2018 Modified Files: src/bin/sh: version.h Log Message: The time has come, the Walrus said... (but no shoes, ships, or sealing wax required). No oysters either. I have not taken the Magical Mystery Tour, b

CVS commit: src/bin/sh

2018-12-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 12 11:51:33 UTC 2018 Modified Files: src/bin/sh: sh.1 var.c Log Message: Implement: readonly -q VAR... readonly -p VAR... export -q [-x] VAR... export -p [-x] VAR... all available only in !SMA

CVS commit: src/bin/sh

2018-12-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 12 07:56:57 UTC 2018 Modified Files: src/bin/sh: var.c Log Message: Fix a botch made in 1.70 (a bit over a week ago) where var=foo; readonly var=new now fails. If var was already set, an attempt to make it readonly,

CVS commit: src/bin/sh

2018-12-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 11 13:31:20 UTC 2018 Modified Files: src/bin/sh: main.c parser.c parser.h sh.1 Log Message: PR standards/42829 Implement parameter and arithmetic expansion of $ENV before using it as the name of a file from which to read sta

CVS commit: src/bin/sh

2018-12-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 9 17:33:38 UTC 2018 Modified Files: src/bin/sh: parser.c Log Message: comment out unused. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/bin/sh/parser.c Please note that diffs are not public doma

CVS commit: src/bin/sh

2018-12-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 5 22:25:38 UTC 2018 Modified Files: src/bin/sh: trap.c Log Message: evert previous, linux build problem confirmed fixed by update to mkinit.sh (to 1.10). Or more correctly, revert & fix - turns out that there was an off by

CVS commit: src/bin/sh

2018-12-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 5 09:20:18 UTC 2018 Modified Files: src/bin/sh: mkinit.sh Log Message: Use printf, rather than echo (via echo redefined as a function that uses printf for simplicity). This script runs using the build host's shell, and echo

CVS commit: src/bin/sh

2018-12-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 5 03:14:28 UTC 2018 Modified Files: src/bin/sh: trap.c Log Message: NFC (except that it should, I am guessing, fix compilation on some versions of liux) - DEBUG mode change: Delete a (relatively new) trace point (temporaril

CVS commit: src/bin/sh

2018-12-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 4 14:03:30 UTC 2018 Modified Files: src/bin/sh: sh.1 var.c var.h Log Message: Alter a design botch when magic (self modifying) variables were added to sh ... in other shells, setting such a variable (for most of them) causes

CVS commit: src/bin/sh

2018-12-03 Thread Martin Husemann
Module Name:src Committed By: martin Date: Mon Dec 3 10:53:29 UTC 2018 Modified Files: src/bin/sh: trap.h Log Message: Make pendingsigs forward declaration match the definition. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/bin/sh/trap.h Please note

CVS commit: src/bin/sh

2018-12-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 3 06:43:19 UTC 2018 Modified Files: src/bin/sh: eval.c eval.h main.c sh.1 trap.c trap.h Log Message: Cleanup traps a bit - attempt to handle weird uses in traps, such as traps that issue break/continue/return to cause the lo

CVS commit: src/bin/sh

2018-12-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 3 06:42:25 UTC 2018 Modified Files: src/bin/sh: eval.c var.c var.h Log Message: Fix "export -x" (and its consequences) to behave as originally intended (and as documented) rather than how it has been behaving (which was not

CVS commit: src/bin/sh

2018-12-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 3 06:41:30 UTC 2018 Modified Files: src/bin/sh: expand.c parser.c Log Message: Yet another foray into the mysterious world of $@ -- this time to fix the (unusual) idiom "${1+$@}" (the quotes are part of it). This seems to h

CVS commit: src/bin/sh

2018-12-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 3 06:40:26 UTC 2018 Modified Files: src/bin/sh: alias.c alias.h eval.c input.c parser.c parser.h syntax.c syntax.h Log Message: Revamp aliases - as dumb an idea as they are, if we're going to have them, they shou

CVS commit: src/bin/sh

2018-12-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 3 02:38:30 UTC 2018 Modified Files: src/bin/sh: jobs.c main.c main.h Log Message: When forking a child shell, arrange for errors/exit to always unwind to the main handler, rather than wherever the parent shell would go. nb:

CVS commit: src/bin/sh

2018-12-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Dec 2 10:27:58 UTC 2018 Modified Files: src/bin/sh: alias.c Log Message: Fix the worst of the bugs in alias processing. This has been in sh since this code was first imported (May 1994) (ie: before 4.4-Lite) There is (much) m

CVS commit: src/bin/sh

2018-11-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Dec 1 07:02:23 UTC 2018 Modified Files: src/bin/sh: parser.c Log Message: Rename the internal function "makename" to "makeword" to better reflect what it actually does (makearg would have been an alternative). While here, notice

CVS commit: src/bin/sh

2018-11-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Dec 1 01:21:07 UTC 2018 Modified Files: src/bin/sh: parser.c parser.h Log Message: NFC. Need a grain of const To generate a diff of this commit: cvs rdiff -u -r1.153 -r1.154 src/bin/sh/parser.c cvs rdiff -u -r1.24 -r1.25 src/

CVS commit: src/bin/sh

2018-11-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Dec 1 01:20:05 UTC 2018 Modified Files: src/bin/sh: alias.c Log Message: NFC. KNF. return (x) -> return x To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/bin/sh/alias.c Please note that diffs are not publ

  1   2   3   4   5   6   >