CVS commit: src/bin/sh

2024-12-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Dec 26 03:23:28 UTC 2024 Modified Files: src/bin/sh: var.c Log Message: Fix a bug from when the ToD variable was added (July 2017) where if TZ is unset, and ToD_FORMAT contains and strftime() conversions which need to know the zo

CVS commit: src/bin/sh

2024-12-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Dec 26 03:23:28 UTC 2024 Modified Files: src/bin/sh: var.c Log Message: Fix a bug from when the ToD variable was added (July 2017) where if TZ is unset, and ToD_FORMAT contains and strftime() conversions which need to know the zo

CVS commit: src/bin/sh

2024-11-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Nov 11 22:57:42 UTC 2024 Modified Files: src/bin/sh: eval.c redir.c redir.h sh.1 show.c Log Message: This commit is intended to be what was intended to happen in the commit of Sun Nov 10 01:22:24 UTC 2024, see: http://mail-i

CVS commit: src/bin/sh

2024-11-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Nov 11 22:57:42 UTC 2024 Modified Files: src/bin/sh: eval.c redir.c redir.h sh.1 show.c Log Message: This commit is intended to be what was intended to happen in the commit of Sun Nov 10 01:22:24 UTC 2024, see: http://mail-i

CVS commit: src/bin/sh

2024-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 10 09:06:25 UTC 2024 Modified Files: src/bin/sh: eval.c redir.c redir.h sh.1 show.c Log Message: Revert the recent change until I can work out how things are broken. To generate a diff of this commit: cvs rdiff -u -r1.195 -

CVS commit: src/bin/sh

2024-11-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 10 09:06:25 UTC 2024 Modified Files: src/bin/sh: eval.c redir.c redir.h sh.1 show.c Log Message: Revert the recent change until I can work out how things are broken. To generate a diff of this commit: cvs rdiff -u -r1.195 -

CVS commit: src/bin/sh

2024-11-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 10 05:21:24 UTC 2024 Modified Files: src/bin/sh: redir.c Log Message: Back out the fcntl() 3rd arg -> (void *) change, leave it as an untouched int. The other way seems to break things. To generate a diff of this commit:

CVS commit: src/bin/sh

2024-11-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 10 05:21:24 UTC 2024 Modified Files: src/bin/sh: redir.c Log Message: Back out the fcntl() 3rd arg -> (void *) change, leave it as an untouched int. The other way seems to break things. To generate a diff of this commit:

CVS commit: src/bin/sh

2024-11-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 10 01:22:24 UTC 2024 Modified Files: src/bin/sh: eval.c redir.c redir.h sh.1 show.c Log Message: exec builtin command redirection fixes Several changes, all related to the exec special built in command, or to close on exec,

CVS commit: src/bin/sh

2024-11-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Nov 10 01:22:24 UTC 2024 Modified Files: src/bin/sh: eval.c redir.c redir.h sh.1 show.c Log Message: exec builtin command redirection fixes Several changes, all related to the exec special built in command, or to close on exec,

CVS commit: src/bin/sh

2024-10-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 21 15:57:45 UTC 2024 Modified Files: src/bin/sh: expand.c parser.c parser.h Log Message: Fix processing of unknown variable expansion types. Our shell is (was) one of the last not to do this correctly. Expansions are suppos

CVS commit: src/bin/sh

2024-10-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 21 15:57:45 UTC 2024 Modified Files: src/bin/sh: expand.c parser.c parser.h Log Message: Fix processing of unknown variable expansion types. Our shell is (was) one of the last not to do this correctly. Expansions are suppos

CVS commit: src/bin/sh

2024-10-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 21 15:56:44 UTC 2024 Modified Files: src/bin/sh: var.c Log Message: If searching for a variable with no name, bail out faster, that can never succeed.NFCI. To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 s

CVS commit: src/bin/sh

2024-10-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 21 15:56:44 UTC 2024 Modified Files: src/bin/sh: var.c Log Message: If searching for a variable with no name, bail out faster, that can never succeed.NFCI. To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 s

CVS commit: src/bin/sh

2024-10-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 21 15:31:34 UTC 2024 Modified Files: src/bin/sh: eval.c Log Message: Add function names to relevant error messages. When a shell detected error occurs while executing a function, include the name of the function currently be

CVS commit: src/bin/sh

2024-10-21 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 21 15:31:34 UTC 2024 Modified Files: src/bin/sh: eval.c Log Message: Add function names to relevant error messages. When a shell detected error occurs while executing a function, include the name of the function currently be

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 09:10:35 UTC 2024 Modified Files: src/bin/sh: options.c Log Message: 80 column police (for the recent -r change). NFC. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/bin/sh/options.c Please note tha

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 09:10:35 UTC 2024 Modified Files: src/bin/sh: options.c Log Message: 80 column police (for the recent -r change). NFC. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/bin/sh/options.c Please note tha

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:27:54 UTC 2024 Modified Files: src/bin/sh: option.list options.c sh.1 Log Message: Add a -r (version) option to sh This new -r (or +r) option is for command line use only. When encountered, the shell simply prints its

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:27:54 UTC 2024 Modified Files: src/bin/sh: option.list options.c sh.1 Log Message: Add a -r (version) option to sh This new -r (or +r) option is for command line use only. When encountered, the shell simply prints its

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:27:19 UTC 2024 Modified Files: src/bin/sh: mknodenames.sh Log Message: Use tools awk where appropriate And while here, switch from using echo to printf (via a function echo() which just uses printf, but is limited to t

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:27:19 UTC 2024 Modified Files: src/bin/sh: mknodenames.sh Log Message: Use tools awk where appropriate And while here, switch from using echo to printf (via a function echo() which just uses printf, but is limited to t

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:15:43 UTC 2024 Modified Files: src/bin/sh: input.c var.c Log Message: Apologies for that commit message ... it should have been the same as for revision 1.124 of Makefile (and as below). (This change changes nothing).

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:15:43 UTC 2024 Modified Files: src/bin/sh: input.c var.c Log Message: Apologies for that commit message ... it should have been the same as for revision 1.124 of Makefile (and as below). (This change changes nothing).

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:13:23 UTC 2024 Modified Files: src/bin/sh: Makefile Log Message: Reject nul characters in shell input. At the request of Thomas Klausner (wiz@) copy an idea from OpenBSD, and have the shell simply reject any (sh) input

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:13:23 UTC 2024 Modified Files: src/bin/sh: Makefile Log Message: Reject nul characters in shell input. At the request of Thomas Klausner (wiz@) copy an idea from OpenBSD, and have the shell simply reject any (sh) input

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:11:57 UTC 2024 Modified Files: src/bin/sh: input.c var.c Log Message: # $NetBSD: Makefile,v 1.123 2023/10/19 04:27:24 mrg Exp $ # @(#)Makefile8.4 (Berkeley) 5/5/95 .include PROG= sh SHSRCS= alias.c

CVS commit: src/bin/sh

2024-10-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Oct 14 08:11:57 UTC 2024 Modified Files: src/bin/sh: input.c var.c Log Message: # $NetBSD: Makefile,v 1.123 2023/10/19 04:27:24 mrg Exp $ # @(#)Makefile8.4 (Berkeley) 5/5/95 .include PROG= sh SHSRCS= alias.c

CVS commit: src/bin/sh

2024-10-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Oct 12 23:34:56 UTC 2024 Modified Files: src/bin/sh: miscbltin.c Log Message: Undo an idiotic attempted micro optimisation in the previous version which broke things... To generate a diff of this commit: cvs rdiff -u -r1.55 -r1

CVS commit: src/bin/sh

2024-10-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Oct 12 23:34:56 UTC 2024 Modified Files: src/bin/sh: miscbltin.c Log Message: Undo an idiotic attempted micro optimisation in the previous version which broke things... To generate a diff of this commit: cvs rdiff -u -r1.55 -r1

CVS commit: src/bin/sh

2024-10-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Oct 11 09:02:10 UTC 2024 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: Add -b and -nMAX options to the read builtin. As requested on (perhaps more than one) mailing list, this adds a -n MAX option, to allow the amoun

CVS commit: src/bin/sh

2024-10-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Oct 11 09:02:10 UTC 2024 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: Add -b and -nMAX options to the read builtin. As requested on (perhaps more than one) mailing list, this adds a -n MAX option, to allow the amoun

CVS commit: src/bin/sh

2024-10-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Oct 11 08:53:09 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: Allow '+' to be specified as the "one char option name" for long options that don't have a 1 char equivalent, but do want to become a member of an opt

CVS commit: src/bin/sh

2024-10-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Oct 11 08:53:09 UTC 2024 Modified Files: src/bin/sh: mkoptions.sh Log Message: Allow '+' to be specified as the "one char option name" for long options that don't have a 1 char equivalent, but do want to become a member of an opt

CVS commit: src/bin/sh

2024-10-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Oct 9 13:43:33 UTC 2024 Modified Files: src/bin/sh: builtins.def jobs.c sh.1 shell.h trap.c trap.h Log Message: PR bin/58687 -- implement suspend as a builtin in sh Requested by uwe@ in PR bin/58687 without objections from anyo

CVS commit: src/bin/sh

2024-10-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Oct 9 13:43:33 UTC 2024 Modified Files: src/bin/sh: builtins.def jobs.c sh.1 shell.h trap.c trap.h Log Message: PR bin/58687 -- implement suspend as a builtin in sh Requested by uwe@ in PR bin/58687 without objections from anyo

CVS commit: src/bin/sh

2024-10-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Oct 9 12:27:11 UTC 2024 Modified Files: src/bin/sh: builtins.def Log Message: Housekeeping. Improve some comments, and sort the list of builtins, to make it easier to find what is there and what isn't (since some have multiple

CVS commit: src/bin/sh

2024-10-09 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Oct 9 12:27:11 UTC 2024 Modified Files: src/bin/sh: builtins.def Log Message: Housekeeping. Improve some comments, and sort the list of builtins, to make it easier to find what is there and what isn't (since some have multiple

CVS commit: src/bin/sh

2024-08-10 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Sat Aug 10 19:21:32 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): fix up formatting of syntax examples .Bd -literal with all lines explicitly formatted (usually with .Ic) doesn't seem to work too well with mandoc shi

CVS commit: src/bin/sh

2024-08-10 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Sat Aug 10 19:21:32 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: sh(1): fix up formatting of syntax examples .Bd -literal with all lines explicitly formatted (usually with .Ic) doesn't seem to work too well with mandoc shi

CVS commit: src/bin/sh

2024-08-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 3 03:46:23 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Revert a part of a change made on 1999-07-09 (in rev 1.21). That change ("compile with WARNS = 2") added "const" qualifiers in many places. One of the

CVS commit: src/bin/sh

2024-08-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 3 03:46:23 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Revert a part of a change made on 1999-07-09 (in rev 1.21). That change ("compile with WARNS = 2") added "const" qualifiers in many places. One of the

CVS commit: src/bin/sh

2024-08-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 3 03:05:58 UTC 2024 Modified Files: src/bin/sh: eval.c eval.h input.c input.h Log Message: Change the "string" argument to evalstring() and setinputstring() from being "char *" to being "const char *". This is needed for a

CVS commit: src/bin/sh

2024-08-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 3 03:05:58 UTC 2024 Modified Files: src/bin/sh: eval.c eval.h input.c input.h Log Message: Change the "string" argument to evalstring() and setinputstring() from being "char *" to being "const char *". This is needed for a

CVS commit: src/bin/sh

2024-08-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 3 01:13:10 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Fix a very old core dump causing bug found by RVP in the history code. That is, truly very old - it is in rev 1.1 from 1994 (and so is probably even old

CVS commit: src/bin/sh

2024-08-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Aug 3 01:13:10 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Fix a very old core dump causing bug found by RVP in the history code. That is, truly very old - it is in rev 1.1 from 1994 (and so is probably even old

CVS commit: src/bin/sh

2024-07-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jul 13 13:43:58 UTC 2024 Modified Files: src/bin/sh: histedit.c input.c myhistedit.h mystring.c mystring.h sh.1 trap.c var.c var.h Log Message: Implement the HISTFILE and HISTAPPEND variables. See the (newly updated)

CVS commit: src/bin/sh

2024-07-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jul 13 13:43:58 UTC 2024 Modified Files: src/bin/sh: histedit.c input.c myhistedit.h mystring.c mystring.h sh.1 trap.c var.c var.h Log Message: Implement the HISTFILE and HISTAPPEND variables. See the (newly updated)

CVS commit: src/bin/sh

2024-07-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jul 13 07:11:20 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: Remove caveat about $'' quoting, now POSIX.1-2004 exists. nb: no Dd bump, that's coming soon (not needed for this change anyway) To generate a diff of this

CVS commit: src/bin/sh

2024-07-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jul 13 07:11:20 UTC 2024 Modified Files: src/bin/sh: sh.1 Log Message: Remove caveat about $'' quoting, now POSIX.1-2004 exists. nb: no Dd bump, that's coming soon (not needed for this change anyway) To generate a diff of this

CVS commit: src/bin/sh

2024-07-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 12 08:35:48 UTC 2024 Modified Files: src/bin/sh: parser.c parser.h Log Message: Implement expandvar() : runs var/arith/cmdsub expansions on var value expandvar() is like expandenv() and expandstr() - each expands variable va

CVS commit: src/bin/sh

2024-07-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 12 08:35:48 UTC 2024 Modified Files: src/bin/sh: parser.c parser.h Log Message: Implement expandvar() : runs var/arith/cmdsub expansions on var value expandvar() is like expandenv() and expandstr() - each expands variable va

CVS commit: src/bin/sh

2024-07-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 12 07:30:30 UTC 2024 Modified Files: src/bin/sh: exec.c exec.h histedit.c myhistedit.h options.c options.h var.c var.h Log Message: Improve safety in var imports from the environment. Add a new var flag VUNSAFE -

CVS commit: src/bin/sh

2024-07-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 12 07:30:30 UTC 2024 Modified Files: src/bin/sh: exec.c exec.h histedit.c myhistedit.h options.c options.h var.c var.h Log Message: Improve safety in var imports from the environment. Add a new var flag VUNSAFE -

CVS commit: src/bin/sh

2024-07-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 12 04:45:13 UTC 2024 Modified Files: src/bin/sh: show.c Log Message: Meaningless gcc inspired change. This is in code only compiled in DEBUG builds (so not part of any normal NetBSD build). NFC To generate a diff of this

CVS commit: src/bin/sh

2024-07-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 12 04:45:13 UTC 2024 Modified Files: src/bin/sh: show.c Log Message: Meaningless gcc inspired change. This is in code only compiled in DEBUG builds (so not part of any normal NetBSD build). NFC To generate a diff of this

CVS commit: src/bin/sh

2024-07-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 5 04:07:26 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Don't emit a user causable "internal error" message. Non-numeric args to "fc" simply fail to find the string in an empty history buffer, as they might

CVS commit: src/bin/sh

2024-07-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 5 04:07:26 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Don't emit a user causable "internal error" message. Non-numeric args to "fc" simply fail to find the string in an empty history buffer, as they might

CVS commit: src/bin/sh

2024-07-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 5 02:24:57 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Ignore non-numeric values for HISTSIZE This is a temporary change (which can be pulled up to -9 and -10) to avoid having HISTSIZE=foo /bin/sh c

CVS commit: src/bin/sh

2024-07-04 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Jul 5 02:24:57 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: Ignore non-numeric values for HISTSIZE This is a temporary change (which can be pulled up to -9 and -10) to avoid having HISTSIZE=foo /bin/sh c

CVS commit: src/bin/sh

2024-07-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jul 3 05:58:05 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: General source cleanup, whitespace, KNF, 80-col police, ... No executable binary change intended (certainly NFCI). Some debugging info will change as l

CVS commit: src/bin/sh

2024-07-02 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jul 3 05:58:05 UTC 2024 Modified Files: src/bin/sh: histedit.c Log Message: General source cleanup, whitespace, KNF, 80-col police, ... No executable binary change intended (certainly NFCI). Some debugging info will change as l

CVS commit: src/bin/sh

2024-06-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jun 18 07:21:31 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: Remove the possibility that all jobs won't be cleaned up by "wait" There was a possibility that in a wait (no options or args) not all jobs would be cleane

CVS commit: src/bin/sh

2024-06-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Jun 18 07:21:31 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: Remove the possibility that all jobs won't be cleaned up by "wait" There was a possibility that in a wait (no options or args) not all jobs would be cleane

CVS commit: src/bin/sh

2024-06-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 15 06:07:14 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: When generating the text that identifies the command for the job tree from the parse tree data, be more intelligent about where we stick ';' characters. Pr

CVS commit: src/bin/sh

2024-06-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 15 06:07:14 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: When generating the text that identifies the command for the job tree from the parse tree data, be more intelligent about where we stick ';' characters. Pr

CVS commit: src/bin/sh

2024-06-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 15 05:18:48 UTC 2024 Modified Files: src/bin/sh: eval.c jobs.c jobs.h Log Message: POSIX.1-2024 requires that when an async (background) job is started at the top level (ie: not in any kind of subshell environment) of an inte

CVS commit: src/bin/sh

2024-06-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 15 05:18:48 UTC 2024 Modified Files: src/bin/sh: eval.c jobs.c jobs.h Log Message: POSIX.1-2024 requires that when an async (background) job is started at the top level (ie: not in any kind of subshell environment) of an inte

CVS commit: src/bin/sh

2024-06-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 15 05:02:24 UTC 2024 Modified Files: src/bin/sh: syntax.h Log Message: This file uses CHAR_MIN so needs to be complete. While here, fix a typo in the alternate (as in #if 0'd out) version of the ISCTL() macro. NFCI. To g

CVS commit: src/bin/sh

2024-06-14 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 15 05:02:24 UTC 2024 Modified Files: src/bin/sh: syntax.h Log Message: This file uses CHAR_MIN so needs to be complete. While here, fix a typo in the alternate (as in #if 0'd out) version of the ISCTL() macro. NFCI. To g

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 this

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 this

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 wor

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 wor

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 beli

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 beli

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 of

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 of

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. "$@" generates

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. "$@" generates

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 para

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 para

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 t

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 t

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-13 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 src

CVS commit: src/bin/sh

2023-10-13 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 src

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 exa

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 exa

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 ifs

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 ifs

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

  1   2   3   4   >