CVS commit: src/bin/sh

2024-04-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Apr 16 23:30:19 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: Be more explicit with sort fields to produce consistent results with gnu sort (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff

CVS commit: src/bin/sh

2024-04-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Apr 16 23:30:19 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: Be more explicit with sort fields to produce consistent results with gnu sort (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff

CVS commit: src/bin/sh

2024-04-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Apr 12 19:09:50 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: Edgar Fuß pointed out that sh(1) did not mention comments (at all). This has been true forever, and no-one else (including me) ever seems to have noticed

CVS commit: src/bin/sh

2024-04-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Apr 12 19:09:50 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: Edgar Fuß pointed out that sh(1) did not mention comments (at all). This has been true forever, and no-one else (including me) ever seems to have noticed

CVS commit: src/bin/sh

2024-04-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 6 14:20:27 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: Redo the mktemp(1) part - some mktemp's (including ours) require the 's to be at the end of the name (like mk*temp(3)) so however well it will

CVS commit: src/bin/sh

2024-04-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 6 14:20:27 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: Redo the mktemp(1) part - some mktemp's (including ours) require the 's to be at the end of the name (like mk*temp(3)) so however well it will

CVS commit: src/bin/sh

2024-04-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Apr 5 22:22:17 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: >From Jan-Benedict Glaw: Fix a redirection and prepare a stable sort for upper-/lowercase option letters This script is a mess, I strongly

CVS commit: src/bin/sh

2024-04-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Apr 5 22:22:17 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: >From Jan-Benedict Glaw: Fix a redirection and prepare a stable sort for upper-/lowercase option letters This script is a mess, I strongly

CVS commit: src/bin/sh

2024-01-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 30 19:05:07 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: PR bin/57894 For jobs -p for a non-job-control job, avoid just printing 0 (as there is no process group pid) and instead output what we used to, the pid

CVS commit: src/bin/sh

2024-01-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 30 19:05:07 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: PR bin/57894 For jobs -p for a non-job-control job, avoid just printing 0 (as there is no process group pid) and instead output what we used to, the pid

CVS commit: src/bin/sh

2024-01-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 16 14:30:22 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: Remove an ancient incorrect notion which somehow survived intact for ages. "$@" is (as it is in double quotes) not subject to field splitting. "$@"

CVS commit: src/bin/sh

2024-01-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jan 16 14:30:22 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: Remove an ancient incorrect notion which somehow survived intact for ages. "$@" is (as it is in double quotes) not subject to field splitting. "$@"

CVS commit: src/bin/sh

2023-12-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Dec 29 15:49:24 UTC 2023 Modified Files: src/bin/sh: expand.c Log Message: PR bin/57773 Fix another bug reported by Jarle Fredrik Greipsland and added to PR bin/57773, which relates to calculating the length of a positional

CVS commit: src/bin/sh

2023-12-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Dec 29 15:49:24 UTC 2023 Modified Files: src/bin/sh: expand.c Log Message: PR bin/57773 Fix another bug reported by Jarle Fredrik Greipsland and added to PR bin/57773, which relates to calculating the length of a positional

CVS commit: src/bin/sh

2023-12-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 25 04:52:38 UTC 2023 Modified Files: src/bin/sh: eval.c Log Message: PR bin/57773 Fix a bug reported by Jarle Fredrik Greipsland in PR bin/57773, where a substring expansion where the substring to be removed from a variable

CVS commit: src/bin/sh

2023-12-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 25 04:52:38 UTC 2023 Modified Files: src/bin/sh: eval.c Log Message: PR bin/57773 Fix a bug reported by Jarle Fredrik Greipsland in PR bin/57773, where a substring expansion where the substring to be removed from a variable

CVS commit: src/bin/sh

2023-12-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 25 02:28:47 UTC 2023 Modified Files: src/bin/sh: expand.c Log Message: Correct a bizarre piece of source formatting that crept in by accident several years ago (change a space into newline tab). NFC To generate a diff of

CVS commit: src/bin/sh

2023-12-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Dec 25 02:28:47 UTC 2023 Modified Files: src/bin/sh: expand.c Log Message: Correct a bizarre piece of source formatting that crept in by accident several years ago (change a space into newline tab). NFC To generate a diff of

CVS commit: src/bin/sh

2023-10-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Oct 20 22:08:52 UTC 2023 Modified Files: src/bin/sh: parser.c Log Message: Work around a probably gcc12 bug in detecting "potentially clobbered" variables after longjmp() for some architectures (sh3 at least). This should allow

CVS commit: src/bin/sh

2023-10-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Oct 20 22:08:52 UTC 2023 Modified Files: src/bin/sh: parser.c Log Message: Work around a probably gcc12 bug in detecting "potentially clobbered" variables after longjmp() for some architectures (sh3 at least). This should allow

CVS commit: src/bin/sh

2023-10-18 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Oct 19 04:27:24 UTC 2023 Modified Files: src/bin/sh: Makefile Log Message: convert gcc12 -O1 into -Wno-error=clobbered. parser.c wants all the optimisation, and this is very likely a false positive. To generate a diff of this

CVS commit: src/bin/sh

2023-10-18 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Oct 19 04:27:24 UTC 2023 Modified Files: src/bin/sh: Makefile Log Message: convert gcc12 -O1 into -Wno-error=clobbered. parser.c wants all the optimisation, and this is very likely a false positive. To generate a diff of this

CVS commit: src/bin/sh

2023-10-14 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Oct 14 06:53:56 UTC 2023 Modified Files: src/bin/sh: Makefile Log Message: the parser.c longjmp vs gcc12 issue affects a few ports, make the workaround global. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122

CVS commit: src/bin/sh

2023-10-14 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Oct 14 06:53:56 UTC 2023 Modified Files: src/bin/sh: Makefile Log Message: the parser.c longjmp vs gcc12 issue affects a few ports, make the workaround global. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122

CVS commit: src/bin/sh

2023-10-11 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Thu Oct 12 01:45:07 UTC 2023 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): touch up markup for the ENV example Don't use Dq in a literal display, ascii quotes are \*q While here mark up as literal a few things around this

CVS commit: src/bin/sh

2023-10-11 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Thu Oct 12 01:45:07 UTC 2023 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): touch up markup for the ENV example Don't use Dq in a literal display, ascii quotes are \*q While here mark up as literal a few things around this

CVS commit: src/bin/sh

2023-10-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Oct 5 20:33:31 UTC 2023 Modified Files: src/bin/sh: miscbltin.c Log Message: If the read builtin is told to read into IFS, we must avoid doing that until all current uses of IFS are complete (as we have IFS's value cached in

CVS commit: src/bin/sh

2023-10-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Oct 5 20:33:31 UTC 2023 Modified Files: src/bin/sh: miscbltin.c Log Message: If the read builtin is told to read into IFS, we must avoid doing that until all current uses of IFS are complete (as we have IFS's value cached in

CVS commit: src/bin/sh

2023-08-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 1 01:57:54 UTC 2023 Modified Files: src/bin/sh: sh.1 Log Message: At the request of bad@ enhance the synopsis of the set built-in command to include explicit mention of the -o opt and +o opt forms. Fix the synopsis to have

CVS commit: src/bin/sh

2023-08-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 1 01:57:54 UTC 2023 Modified Files: src/bin/sh: sh.1 Log Message: At the request of bad@ enhance the synopsis of the set built-in command to include explicit mention of the -o opt and +o opt forms. Fix the synopsis to have

CVS commit: src/bin/sh

2023-08-13 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Aug 14 03:18:15 UTC 2023 Modified Files: src/bin/sh: Makefile Log Message: use -O1 on sh3, GCC 12 and parser.c. this triggers clobbered vs. longjmp/setjmp warnings with -Os that sh3 uses. To generate a diff of this commit:

CVS commit: src/bin/sh

2023-08-13 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Aug 14 03:18:15 UTC 2023 Modified Files: src/bin/sh: Makefile Log Message: use -O1 on sh3, GCC 12 and parser.c. this triggers clobbered vs. longjmp/setjmp warnings with -Os that sh3 uses. To generate a diff of this commit:

CVS commit: src/bin/sh

2023-08-04 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Fri Aug 4 15:31:40 UTC 2023 Modified Files: src/bin/sh: sh.1 Log Message: tyops: * redicection -> redirection * escaoed -> escaped Noted by J. Lewis Muir on netbsd-docs@ To generate a diff of this commit: cvs rdiff -u

CVS commit: src/bin/sh

2023-08-04 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Fri Aug 4 15:31:40 UTC 2023 Modified Files: src/bin/sh: sh.1 Log Message: tyops: * redicection -> redirection * escaoed -> escaped Noted by J. Lewis Muir on netbsd-docs@ To generate a diff of this commit: cvs rdiff -u

CVS commit: src/bin/sh

2023-06-23 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sat Jun 24 05:17:02 UTC 2023 Modified Files: src/bin/sh: eval.c Log Message: Fix typo in a debug message. To generate a diff of this commit: cvs rdiff -u -r1.189 -r1.190 src/bin/sh/eval.c Please note that diffs are not public

CVS commit: src/bin/sh

2023-06-23 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sat Jun 24 05:17:02 UTC 2023 Modified Files: src/bin/sh: eval.c Log Message: Fix typo in a debug message. To generate a diff of this commit: cvs rdiff -u -r1.189 -r1.190 src/bin/sh/eval.c Please note that diffs are not public

CVS commit: src/bin/sh

2023-04-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Apr 7 10:42:28 UTC 2023 Modified Files: src/bin/sh: memalloc.c Log Message: Remove an end of file trailing blank line that served no purpose. NFCI To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39

CVS commit: src/bin/sh

2023-04-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Apr 7 10:42:28 UTC 2023 Modified Files: src/bin/sh: memalloc.c Log Message: Remove an end of file trailing blank line that served no purpose. NFCI To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39

CVS commit: src/bin/sh

2023-04-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Apr 7 10:34:13 UTC 2023 Modified Files: src/bin/sh: eval.c histedit.c jobs.c jobs.h main.c memalloc.c mktokens mystring.c output.c parser.c show.c src/bin/sh/funcs: dirs popd pushd Log Message: The great

CVS commit: src/bin/sh

2023-04-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Apr 7 10:34:13 UTC 2023 Modified Files: src/bin/sh: eval.c histedit.c jobs.c jobs.h main.c memalloc.c mktokens mystring.c output.c parser.c show.c src/bin/sh/funcs: dirs popd pushd Log Message: The great

CVS commit: src/bin/sh

2023-03-21 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Tue Mar 21 08:31:30 UTC 2023 Modified Files: src/bin/sh: error.h Log Message: Use "sigjmp_buf loc" after switch to sigsetjmp()/siglongjmp(). Fixes errors and aborts on sparc at least. To generate a diff of this commit: cvs

CVS commit: src/bin/sh

2023-03-21 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Tue Mar 21 08:31:30 UTC 2023 Modified Files: src/bin/sh: error.h Log Message: Use "sigjmp_buf loc" after switch to sigsetjmp()/siglongjmp(). Fixes errors and aborts on sparc at least. To generate a diff of this commit: cvs

CVS commit: src/bin/sh

2023-03-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 19 17:55:57 UTC 2023 Modified Files: src/bin/sh: error.c exec.c Log Message: Do a better job handling EACCES errors from exec() calls. If the EACCES is from the namei(), treat it just like ENOENT or ENOTDIR (and if that is

CVS commit: src/bin/sh

2023-03-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 19 17:55:57 UTC 2023 Modified Files: src/bin/sh: error.c exec.c Log Message: Do a better job handling EACCES errors from exec() calls. If the EACCES is from the namei(), treat it just like ENOENT or ENOTDIR (and if that is

CVS commit: src/bin/sh

2023-03-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 19 17:47:48 UTC 2023 Modified Files: src/bin/sh: error.h Log Message: Switch from using _setjmp()/_longjmp() (on BSD systems which aren't SVR4) (and setjmp()/longjmp() elsewhere) to using sigsetjmp()/siglongjmp() everywhere.

CVS commit: src/bin/sh

2023-03-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 19 17:47:48 UTC 2023 Modified Files: src/bin/sh: error.h Log Message: Switch from using _setjmp()/_longjmp() (on BSD systems which aren't SVR4) (and setjmp()/longjmp() elsewhere) to using sigsetjmp()/siglongjmp() everywhere.

CVS commit: src/bin/sh

2023-03-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 19 17:45:30 UTC 2023 Modified Files: src/bin/sh: error.h Log Message: Change a few #defines from octal to hex (pdp11 days are long gone). Improve the layout of those definitions at the same time. NFC. To generate a diff

CVS commit: src/bin/sh

2023-03-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 19 17:45:30 UTC 2023 Modified Files: src/bin/sh: error.h Log Message: Change a few #defines from octal to hex (pdp11 days are long gone). Improve the layout of those definitions at the same time. NFC. To generate a diff

CVS commit: src/bin/sh

2023-03-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Mar 6 05:54:34 UTC 2023 Modified Files: src/bin/sh: expand.c Log Message: Adjust tilde expansion as will be documented in the forthcoming version of the POSIX standard (Issue 8). I believe we were already compliant with what

CVS commit: src/bin/sh

2023-03-05 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Mar 6 05:54:34 UTC 2023 Modified Files: src/bin/sh: expand.c Log Message: Adjust tilde expansion as will be documented in the forthcoming version of the POSIX standard (Issue 8). I believe we were already compliant with what

CVS commit: src/bin/sh

2023-02-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Feb 24 19:04:54 UTC 2023 Modified Files: src/bin/sh: alias.c Log Message: Allow (but do not require) the magic '--' option terminator in the builtin 'alias' command. This allows portability (not that anyone should really care

CVS commit: src/bin/sh

2023-02-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Feb 24 19:04:54 UTC 2023 Modified Files: src/bin/sh: alias.c Log Message: Allow (but do not require) the magic '--' option terminator in the builtin 'alias' command. This allows portability (not that anyone should really care

CVS commit: src/bin/sh

2022-12-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 20 17:51:54 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: More markup errors. \+ was intended to be \&+ and .EV .Ev of course. As best I can tell, the rest of what mandoc -Wall complains about is incorrect (it

CVS commit: src/bin/sh

2022-12-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 20 17:51:54 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: More markup errors. \+ was intended to be \&+ and .EV .Ev of course. As best I can tell, the rest of what mandoc -Wall complains about is incorrect (it

CVS commit: src/bin/sh

2022-12-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 20 16:48:57 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Using .Cm Cm makes no sense at all - no idea what I was thinking there (perhaps just an editing error). To generate a diff of this commit: cvs rdiff -u

CVS commit: src/bin/sh

2022-12-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 20 16:48:57 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Using .Cm Cm makes no sense at all - no idea what I was thinking there (perhaps just an editing error). To generate a diff of this commit: cvs rdiff -u

CVS commit: src/bin/sh

2022-12-19 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Tue Dec 20 01:18:42 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): Fix markup. -compact must be last. To generate a diff of this commit: cvs rdiff -u -r1.252 -r1.253 src/bin/sh/sh.1 Please note that diffs are not

CVS commit: src/bin/sh

2022-12-19 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Tue Dec 20 01:18:42 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): Fix markup. -compact must be last. To generate a diff of this commit: cvs rdiff -u -r1.252 -r1.253 src/bin/sh/sh.1 Please note that diffs are not

CVS commit: src/bin/sh

2022-12-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Dec 11 08:23:11 UTC 2022 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: It appears that POSIX intends to add a -d X option to the read command in its next version, so it can be used as -d '' (to specify a \0 end

CVS commit: src/bin/sh

2022-12-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Dec 11 08:23:11 UTC 2022 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: It appears that POSIX intends to add a -d X option to the read command in its next version, so it can be used as -d '' (to specify a \0 end

CVS commit: src/bin/sh

2022-10-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 30 01:46:17 UTC 2022 Modified Files: src/bin/sh: jobs.c Log Message: PR bin/57053 is related (peripherally) here. sh has been remembering the process group of a job for a while now, but using that for almost nothing. The

CVS commit: src/bin/sh

2022-10-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 30 01:46:17 UTC 2022 Modified Files: src/bin/sh: jobs.c Log Message: PR bin/57053 is related (peripherally) here. sh has been remembering the process group of a job for a while now, but using that for almost nothing. The

CVS commit: src/bin/sh

2022-10-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 30 01:19:08 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Note in the description of "jobs -p" that the process id returned is also the process group identifier (that's a requirement from POSIX, and is what we have

CVS commit: src/bin/sh

2022-10-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Oct 30 01:19:08 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Note in the description of "jobs -p" that the process id returned is also the process group identifier (that's a requirement from POSIX, and is what we have

CVS commit: src/bin/sh

2022-09-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 18 17:11:33 UTC 2022 Modified Files: src/bin/sh: var.c Log Message: Oops, somehow managed to commit an older version where NBSH_INVOCATION start char was '@' rather than '!' (which meant not lexically ordered). This is how

CVS commit: src/bin/sh

2022-09-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 18 17:11:33 UTC 2022 Modified Files: src/bin/sh: var.c Log Message: Oops, somehow managed to commit an older version where NBSH_INVOCATION start char was '@' rather than '!' (which meant not lexically ordered). This is how

CVS commit: src/bin/sh

2022-09-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 18 06:03:19 UTC 2022 Modified Files: src/bin/sh: main.c option.list options.c sh.1 var.c var.h Log Message: Add the -l option (aka -o login): be a login shell. Meaningful only on the command line (with both - and + forms)

CVS commit: src/bin/sh

2022-09-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Sep 18 06:03:19 UTC 2022 Modified Files: src/bin/sh: main.c option.list options.c sh.1 var.c var.h Log Message: Add the -l option (aka -o login): be a login shell. Meaningful only on the command line (with both - and + forms)

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 19:25:10 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: More wording improvements. There might be more to come. To generate a diff of this commit: cvs rdiff -u -r1.248 -r1.249 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 19:25:10 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: More wording improvements. There might be more to come. To generate a diff of this commit: cvs rdiff -u -r1.248 -r1.249 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 17:32:18 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Minor wording improvements. Note these do not alter anything about what the man page specifies, just say a couple of things in a slightly better way, hence

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 17:32:18 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Minor wording improvements. Note these do not alter anything about what the man page specifies, just say a couple of things in a slightly better way, hence

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 17:29:21 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Move a comment that used to be in the correct place, once upon a time, back where it belongs, and make it stand out more, so other text is less likely to

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 17:29:21 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Move a comment that used to be in the correct place, once upon a time, back where it belongs, and make it stand out more, so other text is less likely to

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 17:25:09 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Whitespace. To generate a diff of this commit: cvs rdiff -u -r1.245 -r1.246 src/bin/sh/sh.1 Please note that diffs are not public domain; they are subject

CVS commit: src/bin/sh

2022-09-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Sep 16 17:25:09 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Whitespace. To generate a diff of this commit: cvs rdiff -u -r1.245 -r1.246 src/bin/sh/sh.1 Please note that diffs are not public domain; they are subject

CVS commit: src/bin/sh

2022-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Sep 15 18:00:36 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Correct spelling of terminal (it doesn't have a 2nd m). To generate a diff of this commit: cvs rdiff -u -r1.244 -r1.245 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2022-09-15 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Sep 15 18:00:36 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Correct spelling of terminal (it doesn't have a 2nd m). To generate a diff of this commit: cvs rdiff -u -r1.244 -r1.245 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2022-08-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Aug 22 17:33:11 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: Add debugging trace points for history and the editline interface. NFC for any normal shell (not compiled with debugging (sh DEBUG) enabled. We have

CVS commit: src/bin/sh

2022-08-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Aug 22 17:33:11 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: Add debugging trace points for history and the editline interface. NFC for any normal shell (not compiled with debugging (sh DEBUG) enabled. We have

CVS commit: src/bin/sh

2022-08-21 Thread Nia Alarie
Module Name:src Committed By: nia Date: Sun Aug 21 21:35:36 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh(1): revert previous because it interferes with custom user bindings To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

CVS commit: src/bin/sh

2022-08-21 Thread Nia Alarie
Module Name:src Committed By: nia Date: Sun Aug 21 21:35:36 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh(1): revert previous because it interferes with custom user bindings To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

Re: CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Date:Fri, 19 Aug 2022 15:37:59 + From:nia Message-ID: | I wish editing mode and whether editing was enabled was more clearly | divorced. That might be arranged, I will take a look and see what would be involved (the major issue is making sure things get

Re: CVS commit: src/bin/sh

2022-08-19 Thread nia
On Fri, Aug 19, 2022 at 04:15:52AM +0700, Robert Elz wrote: > The effect of "set -o editor" (for whichever editor it uses), that > is when the shell does: el_set(el, EL_EDITOR, editor); is to essentially > set up all the key bindings so they match what that editor expects them > to be. Doing

CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Aug 19 13:37:03 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Improve the description of the read builtin command. To generate a diff of this commit: cvs rdiff -u -r1.243 -r1.244 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Aug 19 13:37:03 UTC 2022 Modified Files: src/bin/sh: sh.1 Log Message: Improve the description of the read builtin command. To generate a diff of this commit: cvs rdiff -u -r1.243 -r1.244 src/bin/sh/sh.1 Please note that

CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Aug 19 12:52:32 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: Don't output the error for bad usage (no var name given) after already writing the prompt (set with the -p option). That results in nonsense like:

CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Aug 19 12:52:32 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: Don't output the error for bad usage (no var name given) after already writing the prompt (set with the -p option). That results in nonsense like:

CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Aug 19 12:17:18 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: PR bin/56972 Fix escape ('\') handling in sh read builtin. In 1.35 (March 2005) (the big read fixup), most escape handling and IFS processing in the

CVS commit: src/bin/sh

2022-08-19 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Aug 19 12:17:18 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: PR bin/56972 Fix escape ('\') handling in sh read builtin. In 1.35 (March 2005) (the big read fixup), most escape handling and IFS processing in the

Re: CVS commit: src/bin/sh

2022-08-18 Thread Robert Elz
Date:Thu, 18 Aug 2022 14:10:05 + From:"Nia Alarie" Message-ID: <20220818141005.5005af...@cvs.netbsd.org> | sh(1): Allow an explicit set -o vi or set -o emacs to override ~/.editrc I'm not sure that change is a good idea - but it depends how you view the

CVS commit: src/bin/sh

2022-08-18 Thread Nia Alarie
Module Name:src Committed By: nia Date: Thu Aug 18 14:10:05 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh(1): Allow an explicit set -o vi or set -o emacs to override ~/.editrc To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

CVS commit: src/bin/sh

2022-08-18 Thread Nia Alarie
Module Name:src Committed By: nia Date: Thu Aug 18 14:10:05 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh(1): Allow an explicit set -o vi or set -o emacs to override ~/.editrc To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

CVS commit: src/bin/sh

2022-08-17 Thread Nia Alarie
Module Name:src Committed By: nia Date: Wed Aug 17 22:27:17 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh(1): Assign the tab completion key binding last so a user having "bind -v" or "bind -e" in ~/.editrc doesn't cause tab completion to no longer

CVS commit: src/bin/sh

2022-08-17 Thread Nia Alarie
Module Name:src Committed By: nia Date: Wed Aug 17 22:27:17 UTC 2022 Modified Files: src/bin/sh: histedit.c Log Message: sh(1): Assign the tab completion key binding last so a user having "bind -v" or "bind -e" in ~/.editrc doesn't cause tab completion to no longer

CVS commit: src/bin/sh

2022-04-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Apr 18 06:02:27 UTC 2022 Modified Files: src/bin/sh: jobs.c Log Message: Introduce a new macro JNUM to replace the idiom jp-jobtab+1 (the job number, given jp a pointer to a jobs table entry) used open coded previously in many

CVS commit: src/bin/sh

2022-04-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Apr 18 06:02:27 UTC 2022 Modified Files: src/bin/sh: jobs.c Log Message: Introduce a new macro JNUM to replace the idiom jp-jobtab+1 (the job number, given jp a pointer to a jobs table entry) used open coded previously in many

CVS commit: src/bin/sh

2022-04-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 16 14:26:26 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: Redo the way the builtin cmd 'ulimit' getopt() (nextopt() really, but it is essentially the same) arg string is generated, to lessen the chances that

CVS commit: src/bin/sh

2022-04-16 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 16 14:26:26 UTC 2022 Modified Files: src/bin/sh: miscbltin.c Log Message: Redo the way the builtin cmd 'ulimit' getopt() (nextopt() really, but it is essentially the same) arg string is generated, to lessen the chances that

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

  1   2   3   >