CVS commit: src/bin/sh

2022-04-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 16 14:23:36 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: While doing the previous change, I noticed that when used in a particularly perverse way, the error message for a bad octal constant as the new umask

CVS commit: src/bin/sh

2022-04-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 16 14:20:45 UTC 2022 Modified Files: src/bin/sh: miscbltin.c mystring.c options.c parser.c Log Message: Avoid generating error messages implying that user errors are illegal. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/bin/sh

2022-04-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 16 14:20:45 UTC 2022 Modified Files: src/bin/sh: miscbltin.c mystring.c options.c parser.c Log Message: Avoid generating error messages implying that user errors are illegal. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/bin/sh

2022-02-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Feb 8 20:39:59 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh: fix typo in comment To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/bin/sh/histedit.c Please note that diffs are not public

CVS commit: src/bin/sh

2022-02-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Feb 8 20:39:59 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh: fix typo in comment To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/bin/sh/histedit.c Please note that diffs are not public

CVS commit: src/bin/sh

2022-02-01 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Feb 2 01:21:34 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: After (a few days short of) 21 years, revert 1.25, which did nothing except make the -e option to "fc" fail to work (the commit message was about some

CVS commit: src/bin/sh

2022-02-01 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Feb 2 01:21:34 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: After (a few days short of) 21 years, revert 1.25, which did nothing except make the -e option to "fc" fail to work (the commit message was about some

CVS commit: src/bin/sh

2022-01-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 31 18:15:45 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: When we initialize libedit (editline) always call ourselves "sh" no matter what $0 is (or is not) set to. This means that editrc(5) lines that start

CVS commit: src/bin/sh

2022-01-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 31 18:15:45 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: When we initialize libedit (editline) always call ourselves "sh" no matter what $0 is (or is not) set to. This means that editrc(5) lines that start

CVS commit: src/bin/sh

2022-01-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 31 16:54:28 UTC 2022 Modified Files: src/bin/sh: cd.c histedit.c Log Message: Add some comments explaining accesses to the environment via getenv()/setenv()/unsetenv() which manipulate the envornoment the shell was passed at

CVS commit: src/bin/sh

2022-01-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 31 16:54:28 UTC 2022 Modified Files: src/bin/sh: cd.c histedit.c Log Message: Add some comments explaining accesses to the environment via getenv()/setenv()/unsetenv() which manipulate the envornoment the shell was passed at

CVS commit: src/bin/sh

2022-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 22 22:53:58 UTC 2022 Modified Files: src/bin/sh: version.h Log Message: After 3 and a bit years, it is time... To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/bin/sh/version.h Please note that diffs are

CVS commit: src/bin/sh

2022-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 22 22:53:58 UTC 2022 Modified Files: src/bin/sh: version.h Log Message: After 3 and a bit years, it is time... To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/bin/sh/version.h Please note that diffs are

CVS commit: src/bin/sh

2022-01-06 Thread Luke Mewburn
Module Name:src Committed By: lukem Date: Fri Jan 7 05:30:30 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): improve getopts docs for optstring leading : getopts has different behaviour if the leading character of optstring is `:', so describe in more

CVS commit: src/bin/sh

2022-01-06 Thread Luke Mewburn
Module Name:src Committed By: lukem Date: Fri Jan 7 05:30:30 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): improve getopts docs for optstring leading : getopts has different behaviour if the leading character of optstring is `:', so describe in more

CVS commit: src/bin/sh

2022-01-06 Thread Luke Mewburn
Module Name:src Committed By: lukem Date: Fri Jan 7 05:10:30 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): fix formatting warnings To generate a diff of this commit: cvs rdiff -u -r1.241 -r1.242 src/bin/sh/sh.1 Please note that diffs are not public

CVS commit: src/bin/sh

2022-01-06 Thread Luke Mewburn
Module Name:src Committed By: lukem Date: Fri Jan 7 05:10:30 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): fix formatting warnings To generate a diff of this commit: cvs rdiff -u -r1.241 -r1.242 src/bin/sh/sh.1 Please note that diffs are not public

CVS commit: src/bin/sh

2022-01-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 5 15:25:44 UTC 2022 Modified Files: src/bin/sh: eval.c Log Message: Use a volative local shadow of a field in an (on-stack) non-volatile struct that is to be referenced after a return from setjmp() via longjmp(). This

CVS commit: src/bin/sh

2022-01-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 5 15:25:44 UTC 2022 Modified Files: src/bin/sh: eval.c Log Message: Use a volative local shadow of a field in an (on-stack) non-volatile struct that is to be referenced after a return from setjmp() via longjmp(). This

CVS commit: src/bin/sh

2021-12-12 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sun Dec 12 11:18:46 UTC 2021 Modified Files: src/bin/sh: miscbltin.c Log Message: s/Miscelaneous/Miscellaneous/ and s/slahes/slashes/ in comments. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/bin/sh

2021-12-12 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sun Dec 12 11:18:46 UTC 2021 Modified Files: src/bin/sh: miscbltin.c Log Message: s/Miscelaneous/Miscellaneous/ and s/slahes/slashes/ in comments. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/bin/sh

2021-11-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Nov 22 05:17:43 UTC 2021 Modified Files: src/bin/sh: eval.c expand.c expand.h nodetypes redir.c Log Message: PR bin/53550 Here we go again... One more time to redo how here docs are processed (it has been a few years since

CVS commit: src/bin/sh

2021-11-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Nov 22 05:17:43 UTC 2021 Modified Files: src/bin/sh: eval.c expand.c expand.h nodetypes redir.c Log Message: PR bin/53550 Here we go again... One more time to redo how here docs are processed (it has been a few years since

CVS commit: src/bin/sh

2021-11-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 21 16:23:20 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Improve the however-many-negatives wording even more. To generate a diff of this commit: cvs rdiff -u -r1.240 -r1.241 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2021-11-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 21 16:23:20 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Improve the however-many-negatives wording even more. To generate a diff of this commit: cvs rdiff -u -r1.240 -r1.241 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2021-11-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Nov 20 17:18:31 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: sh.1: replace triple negation with single negation, fix typo To generate a diff of this commit: cvs rdiff -u -r1.239 -r1.240 src/bin/sh/sh.1 Please

CVS commit: src/bin/sh

2021-11-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Nov 20 17:18:31 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: sh.1: replace triple negation with single negation, fix typo To generate a diff of this commit: cvs rdiff -u -r1.239 -r1.240 src/bin/sh/sh.1 Please

CVS commit: src/bin/sh

2021-11-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Nov 20 01:52:51 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Improve the wording of the "Argument List Processing" section (where all the sh options, also used with "set", are listed) in response to a discussion on icb

CVS commit: src/bin/sh

2021-11-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Nov 20 01:52:51 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Improve the wording of the "Argument List Processing" section (where all the sh options, also used with "set", are listed) in response to a discussion on icb

CVS commit: src/bin/sh

2021-11-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Nov 16 23:39:34 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: sh.1: fix typos To generate a diff of this commit: cvs rdiff -u -r1.237 -r1.238 src/bin/sh/sh.1 Please note that diffs are not public domain; they are

CVS commit: src/bin/sh

2021-11-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Nov 16 23:39:34 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: sh.1: fix typos To generate a diff of this commit: cvs rdiff -u -r1.237 -r1.238 src/bin/sh/sh.1 Please note that diffs are not public domain; they are

CVS commit: src/bin/sh

2021-11-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Nov 16 11:28:29 UTC 2021 Modified Files: src/bin/sh: exec.c sh.1 Log Message: PR bin/56491 Make "hash" exit(!=0) (ie: exit(1)) if it writes an error message to stderr as required by POSIX (it was writing "not found" errors, yet

CVS commit: src/bin/sh

2021-11-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Nov 16 11:28:29 UTC 2021 Modified Files: src/bin/sh: exec.c sh.1 Log Message: PR bin/56491 Make "hash" exit(!=0) (ie: exit(1)) if it writes an error message to stderr as required by POSIX (it was writing "not found" errors, yet

CVS commit: src/bin/sh

2021-11-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Nov 16 11:27:50 UTC 2021 Modified Files: src/bin/sh: eval.c miscbltin.c redir.c Log Message: Detect write errors to stdout, and exit(1) from some built-in commands which (primarily) are used just to generate output (or with a

CVS commit: src/bin/sh

2021-11-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Nov 16 11:27:50 UTC 2021 Modified Files: src/bin/sh: eval.c miscbltin.c redir.c Log Message: Detect write errors to stdout, and exit(1) from some built-in commands which (primarily) are used just to generate output (or with a

CVS commit: src/bin/sh

2021-11-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Nov 16 11:25:44 UTC 2021 Modified Files: src/bin/sh: eval.c nodetypes parser.c Log Message: Fix value of ${LINENO} in "for" commands. This affects (as best I can tell) only uses of ${LINENO} in PS4 when -x is enabled (and

CVS commit: src/bin/sh

2021-11-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Nov 16 11:25:44 UTC 2021 Modified Files: src/bin/sh: eval.c nodetypes parser.c Log Message: Fix value of ${LINENO} in "for" commands. This affects (as best I can tell) only uses of ${LINENO} in PS4 when -x is enabled (and

CVS commit: src/bin/sh

2021-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Nov 10 18:25:52 UTC 2021 Modified Files: src/bin/sh: builtins.def Log Message: Ensure that all of the POSIX standard utilities are correctly identified with the -u flag (that is, I hope I identified all the ones that were

CVS commit: src/bin/sh

2021-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Nov 10 18:25:52 UTC 2021 Modified Files: src/bin/sh: builtins.def Log Message: Ensure that all of the POSIX standard utilities are correctly identified with the -u flag (that is, I hope I identified all the ones that were

CVS commit: src/bin/sh

2021-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Nov 10 15:58:39 UTC 2021 Modified Files: src/bin/sh: output.h Log Message: Add a couple of macro definitions for dealing with shell I/O errors. (Macros akin to stdio's ferror() and clearerr()). NFC: the macros are defined, but

CVS commit: src/bin/sh

2021-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Nov 10 15:58:39 UTC 2021 Modified Files: src/bin/sh: output.h Log Message: Add a couple of macro definitions for dealing with shell I/O errors. (Macros akin to stdio's ferror() and clearerr()). NFC: the macros are defined, but

CVS commit: src/bin/sh

2021-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Nov 10 15:26:34 UTC 2021 Modified Files: src/bin/sh: error.c eval.c expand.c redir.c trap.c Log Message: DEBUG mode changes only. NFC (NC) for any normally compiled shell. Mostly adding DEBUG mode tracing (when appropriate

CVS commit: src/bin/sh

2021-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Nov 10 15:26:34 UTC 2021 Modified Files: src/bin/sh: error.c eval.c expand.c redir.c trap.c Log Message: DEBUG mode changes only. NFC (NC) for any normally compiled shell. Mostly adding DEBUG mode tracing (when appropriate

CVS commit: src/bin/sh

2021-10-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 31 02:12:08 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: PR bin/45390 Be explicit about what happens to PWD after a successful cd command. Also be very clear that "cd" and "cd -P" are the same thing, and the only

CVS commit: src/bin/sh

2021-10-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 31 02:12:01 UTC 2021 Modified Files: src/bin/sh: cd.c Log Message: PR bin/45390 - fix for folly four In the pwd builtin, verify that curdir names '.' before simply printing it. Never alter PWD or OLDPWD in the pwd

CVS commit: src/bin/sh

2021-10-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 31 02:12:08 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: PR bin/45390 Be explicit about what happens to PWD after a successful cd command. Also be very clear that "cd" and "cd -P" are the same thing, and the only

CVS commit: src/bin/sh

2021-10-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 31 02:12:01 UTC 2021 Modified Files: src/bin/sh: cd.c Log Message: PR bin/45390 - fix for folly four In the pwd builtin, verify that curdir names '.' before simply printing it. Never alter PWD or OLDPWD in the pwd

Re: CVS commit: src/bin/sh

2021-10-26 Thread Christos Zoulas
In article <20211026000538.893d6f...@cvs.netbsd.org>, Robert Elz wrote: >-=-=-=-=-=- > >+ waspriv = privileged = (uid != geteuid()) || (gid != getegid()); >+ No issetugid()? christos

Re: CVS commit: src/bin/sh

2021-10-26 Thread Robert Elz
ps: Also, the code is (while refactored a little) essentially the same as the -p code you added in 2015 ... just now avoiding repeatedly calling geteuid() (etc) - the value it returns won't change unless the code does something to change it. kre

Re: CVS commit: src/bin/sh

2021-10-26 Thread Robert Elz
Date:Tue, 26 Oct 2021 15:07:23 - (UTC) From:chris...@astron.com (Christos Zoulas) Message-ID: | No issetugid()? No, because I'm not sure I understand that, nor that I believe: A process is tainted if [...] it has changed any of its real, effective or

CVS commit: src/bin/sh

2021-10-26 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 26 10:07:20 UTC 2021 Modified Files: src/bin/sh: main.c memalloc.c memalloc.h Log Message: Use a type-correct end marker for strstrcat() rather than NULL, as for a function with unknown number & types of args, the compiler

CVS commit: src/bin/sh

2021-10-26 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 26 10:07:20 UTC 2021 Modified Files: src/bin/sh: main.c memalloc.c memalloc.h Log Message: Use a type-correct end marker for strstrcat() rather than NULL, as for a function with unknown number & types of args, the compiler

CVS commit: src/bin/sh

2021-10-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 26 00:05:38 UTC 2021 Modified Files: src/bin/sh: main.c memalloc.c memalloc.h options.c sh.1 shell.h Log Message: PR bin/56464 After almost 30 years, finally do the right thing and read $HOME/.profile rather than .profile

CVS commit: src/bin/sh

2021-10-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 26 00:05:38 UTC 2021 Modified Files: src/bin/sh: main.c memalloc.c memalloc.h options.c sh.1 shell.h Log Message: PR bin/56464 After almost 30 years, finally do the right thing and read $HOME/.profile rather than .profile

CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 10 18:46:25 UTC 2021 Modified Files: src/bin/sh: jobs.c Log Message: sh: remove useless do-while-0 loop 28 years was more than enough for the useless 'continue' statement in this do-while-0 "loop". Without the 'continue'

CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 10 18:46:25 UTC 2021 Modified Files: src/bin/sh: jobs.c Log Message: sh: remove useless do-while-0 loop 28 years was more than enough for the useless 'continue' statement in this do-while-0 "loop". Without the 'continue'

Re: CVS commit: src/bin/sh

2021-10-10 Thread Tom Ivar Helbekkmo
Roland Illig writes: > Anyway, the code in question was more verbose than necessary, so I made > it simpler. I also experimented with replacing the switch with a single > if statement, but that would have become too dense and thus difficult to > decipher. Yes, the code in exec.c looks much

Re: CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Am 10.10.2021 um 08:40 schrieb Tom Ivar Helbekkmo: > Roland Illig writes: > >> sh: ignore lint error about 'continue' in 'do while' loop >> >> exec.c(575): error: continue in 'do ... while (0)' loop [323] >> jobs.c(203): error: continue in 'do ... while (0)' loop [323] >> >> It is certainly a

CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 10 08:35:34 UTC 2021 Modified Files: src/bin/sh: Makefile jobs.c Log Message: sh: remove no-op 'continue' from do-while-0 loop With Clang, the only change to the binary are the line number changes from __LINE__, GCC

CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 10 08:35:34 UTC 2021 Modified Files: src/bin/sh: Makefile jobs.c Log Message: sh: remove no-op 'continue' from do-while-0 loop With Clang, the only change to the binary are the line number changes from __LINE__, GCC

CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 10 08:19:02 UTC 2021 Modified Files: src/bin/sh: exec.c Log Message: sh: make find_command simpler Lint complained about the do-while-0 loop that contained a continue. It didn't state the reason for it, but indeed the

CVS commit: src/bin/sh

2021-10-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 10 08:19:02 UTC 2021 Modified Files: src/bin/sh: exec.c Log Message: sh: make find_command simpler Lint complained about the do-while-0 loop that contained a continue. It didn't state the reason for it, but indeed the

Re: CVS commit: src/bin/sh

2021-10-10 Thread Tom Ivar Helbekkmo
Roland Illig writes: > sh: ignore lint error about 'continue' in 'do while' loop > > exec.c(575): error: continue in 'do ... while (0)' loop [323] > jobs.c(203): error: continue in 'do ... while (0)' loop [323] > > It is certainly a rarely used feature, I saw it the first time today > and I

CVS commit: src/bin/sh

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:02:53 UTC 2021 Modified Files: src/bin/sh: Makefile Log Message: sh: ignore lint error about 'continue' in 'do while' loop exec.c(575): error: continue in 'do ... while (0)' loop [323] jobs.c(203): error: continue

CVS commit: src/bin/sh

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:02:53 UTC 2021 Modified Files: src/bin/sh: Makefile Log Message: sh: ignore lint error about 'continue' in 'do while' loop exec.c(575): error: continue in 'do ... while (0)' loop [323] jobs.c(203): error: continue

CVS commit: src/bin/sh

2021-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Sep 15 20:21:48 UTC 2021 Modified Files: src/bin/sh: redir.c Log Message: Fix an ordering error in the previous (and even earlier, going back a way, but made more serious with the recent changes). The n> operation (more or less

CVS commit: src/bin/sh

2021-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Sep 15 20:21:48 UTC 2021 Modified Files: src/bin/sh: redir.c Log Message: Fix an ordering error in the previous (and even earlier, going back a way, but made more serious with the recent changes). The n> operation (more or less

CVS commit: src/bin/sh

2021-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Sep 15 18:30:57 UTC 2021 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: Have the ulimit command watch for ulimit -n (alter number of available fds) and keep the rest of the shell aware of any changes. While here,

CVS commit: src/bin/sh

2021-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Sep 15 18:30:57 UTC 2021 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: Have the ulimit command watch for ulimit -n (alter number of available fds) and keep the rest of the shell aware of any changes. While here,

CVS commit: src/bin/sh

2021-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Sep 15 18:29:45 UTC 2021 Modified Files: src/bin/sh: main.c parser.c redir.c redir.h Log Message: Improve the solution for the 2nd access to a fd which shouldn't be available ("13") issue reported by Jan Schaumann on

CVS commit: src/bin/sh

2021-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Sep 15 18:29:45 UTC 2021 Modified Files: src/bin/sh: main.c parser.c redir.c redir.h Log Message: Improve the solution for the 2nd access to a fd which shouldn't be available ("13") issue reported by Jan Schaumann on

CVS commit: src/bin/sh

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 15:04:09 UTC 2021 Modified Files: src/bin/sh: histedit.c Log Message: Quote the filenames like before To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/bin/sh/histedit.c Please note that diffs are

CVS commit: src/bin/sh

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 15:04:09 UTC 2021 Modified Files: src/bin/sh: histedit.c Log Message: Quote the filenames like before To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/bin/sh/histedit.c Please note that diffs are

CVS commit: src/bin/sh

2021-09-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Sep 14 14:49:39 UTC 2021 Modified Files: src/bin/sh: parser.c redir.c Log Message: Deal with some issues where fds intended only for internal use by the shell were available for manipulation by scripts (or the user). These

CVS commit: src/bin/sh

2021-09-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Sep 14 14:49:39 UTC 2021 Modified Files: src/bin/sh: parser.c redir.c Log Message: Deal with some issues where fds intended only for internal use by the shell were available for manipulation by scripts (or the user). These

CVS commit: src/bin/sh

2021-09-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Sep 12 06:53:08 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Mark up NULL with Dv. To generate a diff of this commit: cvs rdiff -u -r1.232 -r1.233 src/bin/sh/sh.1 Please note that diffs are not public domain; they

CVS commit: src/bin/sh

2021-09-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Sep 12 06:53:08 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Mark up NULL with Dv. To generate a diff of this commit: cvs rdiff -u -r1.232 -r1.233 src/bin/sh/sh.1 Please note that diffs are not public domain; they

CVS commit: src/bin/sh

2021-09-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 12 02:20:37 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Improve the formatting of the list of Built-in commands for those commands with multiple synopsis lines (eg: trap). But there really must be a better way to

CVS commit: src/bin/sh

2021-09-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 12 02:20:37 UTC 2021 Modified Files: src/bin/sh: sh.1 Log Message: Improve the formatting of the list of Built-in commands for those commands with multiple synopsis lines (eg: trap). But there really must be a better way to

CVS commit: src/bin/sh

2021-09-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 12 01:30:41 UTC 2021 Modified Files: src/bin/sh: jobs.c sh.1 Log Message: Don't dereference NULL on "jobs -Z" (with no title given), instead do setproctitle(NULL) (which is not the same thing at all). Do the same with jobs

CVS commit: src/bin/sh

2021-09-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 12 01:30:41 UTC 2021 Modified Files: src/bin/sh: jobs.c sh.1 Log Message: Don't dereference NULL on "jobs -Z" (with no title given), instead do setproctitle(NULL) (which is not the same thing at all). Do the same with jobs

CVS commit: src/bin/sh

2021-09-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 11 20:43:32 UTC 2021 Modified Files: src/bin/sh: jobs.c jobs.h sh.1 Log Message: Add jobs -Z (like in zsh(1)) to setproctitle(3). To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/bin/sh/jobs.c cvs

CVS commit: src/bin/sh

2021-09-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 11 20:43:32 UTC 2021 Modified Files: src/bin/sh: jobs.c jobs.h sh.1 Log Message: Add jobs -Z (like in zsh(1)) to setproctitle(3). To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/bin/sh/jobs.c cvs

CVS commit: src/bin/sh

2021-09-08 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Sep 9 01:14:04 UTC 2021 Modified Files: src/bin/sh: parser.c Log Message: Fix a bug with here document processing reported on the austin group list by oguzismailuy...@gmail.com (2021-09-08) (applies to all ash descendant

CVS commit: src/bin/sh

2021-09-08 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Sep 9 01:14:04 UTC 2021 Modified Files: src/bin/sh: parser.c Log Message: Fix a bug with here document processing reported on the austin group list by oguzismailuy...@gmail.com (2021-09-08) (applies to all ash descendant

Re: CVS commit: src/bin/sh

2020-02-06 Thread Robert Elz
Date:Fri, 7 Feb 2020 01:25:08 + From:"Santhosh Raju" Message-ID: <20200207012508.38c9cf...@cvs.netbsd.org> | bin/sh: Fixes -Werror=shadow causing build breaks. Thanks for that. kre

CVS commit: src/bin/sh

2019-10-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Oct 14 13:34:14 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: remove masking and cast (requested by kre@) To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/bin/sh/expand.c Please note that

CVS commit: src/bin/sh

2019-10-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Oct 14 13:34:14 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: remove masking and cast (requested by kre@) To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/bin/sh/expand.c Please note that

CVS commit: src/bin/sh

2019-10-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Oct 13 20:55:04 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: prevent sign extension from making expression always false. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/bin/sh/expand.c

CVS commit: src/bin/sh

2019-10-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Oct 13 20:55:04 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: prevent sign extension from making expression always false. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/bin/sh/expand.c

CVS commit: src/bin/sh

2019-10-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 8 03:53:57 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: Remove a (completely harmless) duplicate assignment introduced in a code merge from FreeBSD in 2017. NFC. Pointed out by Roland Illig. To generate a

CVS commit: src/bin/sh

2019-10-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 8 03:53:57 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: Remove a (completely harmless) duplicate assignment introduced in a code merge from FreeBSD in 2017. NFC. Pointed out by Roland Illig. To generate a

CVS commit: src/bin/sh

2019-10-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 8 03:52:44 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: Open code the validity test & copy of the character class name in a bracket expression in a pattern (ie: [[:THISNAME:]]). Previously the code used

CVS commit: src/bin/sh

2019-10-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 8 03:52:44 UTC 2019 Modified Files: src/bin/sh: expand.c Log Message: Open code the validity test & copy of the character class name in a bracket expression in a pattern (ie: [[:THISNAME:]]). Previously the code used

Re: CVS commit: src/bin/sh

2018-12-03 Thread Robert Elz
Date:Mon, 3 Dec 2018 10:53:29 + From:"Martin Husemann" Message-ID: <20181203105329.45433f...@cvs.netbsd.org> | Log Message: | Make pendingsigs forward declaration match the definition. Grunge, sorry about that - I assume that's what went wrong with the alpha

Re: CVS commit: src/bin/sh

2018-03-17 Thread Robert Elz
Date:Sun, 18 Mar 2018 03:29:54 +0300 From:Valery Ushakov Message-ID: <20180318002954.gl3...@pony.stderr.spb.ru> | At this point I'm inclined to just chalk it up to English culture | being nominalistic par excelence and give up any further

Re: CVS commit: src/bin/sh

2018-03-17 Thread Valery Ushakov
On Sun, Mar 18, 2018 at 04:12:16 +0700, Robert Elz wrote: > Date:Sat, 17 Mar 2018 22:52:51 +0300 > From:Valery Ushakov > Message-ID: <20180317195251.gj3...@pony.stderr.spb.ru> > > | Environment variable is a name/value pair stored in an

Re: CVS commit: src/bin/sh

2018-03-17 Thread Robert Elz
Date:Sat, 17 Mar 2018 22:52:51 +0300 From:Valery Ushakov Message-ID: <20180317195251.gj3...@pony.stderr.spb.ru> | Environment variable is a name/value pair stored in an environment If you stopped there I'd agree with you. | that a C program

Re: CVS commit: src/bin/sh

2018-03-17 Thread Robert Elz
Date:Sat, 17 Mar 2018 23:10:36 +0300 From:Valery Ushakov Message-ID: <20180317201036.gk3...@pony.stderr.spb.ru> | [this probably belong to tech-userlevel] Perhaps - we don't really have a good place to discuss the doc. | ksh(1) has

Re: CVS commit: src/bin/sh

2018-03-17 Thread Valery Ushakov
[this probably belong to tech-userlevel] On Sat, Mar 17, 2018 at 03:46:44 +0300, Valery Ushakov wrote: > That reminds me... We currently abuse ENVIRONMENT section to document > variables like PS1 or HISTSIZE which are quite obviously not > environment variables. I think most of them should be

<    1   2   3   >