#
e043f372 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
bin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
bin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
#
90aea514 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
#
67350cb5 |
| 09-Dec-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340918 through r341763.
|
Revision tags: release/12.0.0 |
|
#
468ed396 |
| 28-Nov-2018 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Fix ${param?} default error message
If word in ${param?word} is missing, the shell shall write a default error message. So expanding ${param?} when param is not set should write an error message
sh: Fix ${param?} default error message
If word in ${param?word} is missing, the shell shall write a default error message. So expanding ${param?} when param is not set should write an error message like
sh: param: parameter not set
This was broken by r316417.
PR: 233585
show more ...
|
#
3af64f03 |
| 11-Sep-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338392 through r338594.
|
#
4269bba2 |
| 05-Sep-2018 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Fix formal overflow in pointer arithmetic
The intention is to lower the value of the pointer, which according to ubsan cannot be done by adding an unsigned quantity.
Reported by: kevans Approve
sh: Fix formal overflow in pointer arithmetic
The intention is to lower the value of the pointer, which according to ubsan cannot be done by adding an unsigned quantity.
Reported by: kevans Approved by: re (kib) MFC after: 1 week
show more ...
|
Revision tags: release/11.2.0 |
|
#
4d7f36ee |
| 29-Apr-2018 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Don't have [ match any [[:class:]]
Submitted by: Robert Elz MFC after: 3 days
|
Revision tags: release/10.4.0, release/11.1.0 |
|
#
209be205 |
| 16-May-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r317971 through r318379.
|
#
1b21b7fa |
| 14-May-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Fix '-' from quoted arithmetic in case/glob pattern range.
It does not make much sense to generate the '-' in a pattern bracket expression using arithmetic expansion, but it does not make sense
sh: Fix '-' from quoted arithmetic in case/glob pattern range.
It does not make much sense to generate the '-' in a pattern bracket expression using arithmetic expansion, but it does not make sense to forbid it either.
Try to avoid reprocessing the string if it is unnecessary.
show more ...
|
#
7e1b7636 |
| 08-May-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r317808 through r317970.
|
#
b9807277 |
| 06-May-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Update TOUR and comments for some code changes, some of them old.
Also, improve some terminology in TOUR and comments.
|
#
be27b311 |
| 04-May-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r317503 through r317807.
|
#
d4993b6d |
| 28-Apr-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Simplify handling of newlines in command substitution.
Unless we need to split on newlines, just append them as normal and remove them at the end.
|
#
c39d3320 |
| 02-Apr-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Remove global state from collate_range_cmp().
The global state is not used across invocations of collate_range_cmp().
|
#
e59833cc |
| 02-Apr-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Don't scan word twice in ${param=word}.
|
#
e2708b16 |
| 02-Apr-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Don't scan word twice in ${param#%##%%word}.
If word is expanded, use the found end instead of iterating over the data again.
|
#
9e1bb30e |
| 02-Apr-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Don't scan word twice in ${param+-word}.
There is no longer a case where argbackq has already been advanced but the string pointer needs to be advanced.
|
#
a54caffd |
| 19-Mar-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Fix build with -DDEBUG=2.
With the new expansion code (word splitting during instead of after other expansion processing), tracing the result of command substitution is no longer possible, so st
sh: Fix build with -DDEBUG=2.
With the new expansion code (word splitting during instead of after other expansion processing), tracing the result of command substitution is no longer possible, so stop trying.
show more ...
|
#
56bf1d61 |
| 18-Mar-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Remove unused return value of subevalvar_misc().
|
#
439948cd |
| 16-Mar-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Get rid of global variable argbackq.
|
#
8999a290 |
| 10-Mar-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Fix executing wrong command with ${unsetvar#$(cmdsubst)}$(cmdsubst).
The parsed internal representation of words consists of a byte string with a list of nodes (commands in command substitution)
sh: Fix executing wrong command with ${unsetvar#$(cmdsubst)}$(cmdsubst).
The parsed internal representation of words consists of a byte string with a list of nodes (commands in command substitution). Each unescaped CTLBACKQ or CTLBACKQ | CTLQUOTE byte corresponds to an entry in the list.
If param in ${param#%##%%word} is not set, the word is not expanded (in a deviation of POSIX shared with other ash variants and ksh93). Erroneously, the pointer in the list of commands (argbackq) was not advanced. This caused the wrong command to be executed later if the outer word contained another command substitution.
Example: echo "${unsetvar#$(echo a)}$(echo b)" wrote "a" but should write "b".
MFC after: 1 week
show more ...
|
#
586fd248 |
| 04-Mar-2017 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Fix crash if a -T trap is taken during command substitution.
Code like t=$(stat -f %m "$file") segfaulted if -T was active and a trap was taken while the shell was waiting for the child proces
sh: Fix crash if a -T trap is taken during command substitution.
Code like t=$(stat -f %m "$file") segfaulted if -T was active and a trap was taken while the shell was waiting for the child process to finish.
What happened was that the dotrap() call in waitforjob() was hit. This re-entered command execution (including expand.c) at a point not expected by expbackq(), and global state (unallocated stack string and argbackq) was corrupted.
To fix this, change expbackq() to prepare for command execution to be re-entered.
Reported by: bdrewery MFC after: 1 week
show more ...
|
#
348238db |
| 01-Mar-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314420 through r314481.
|
#
fbbd9655 |
| 01-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|