Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0 |
|
#
a35d3535 |
| 22-Nov-2010 |
Dimitry Andric <dim@FreeBSD.org> |
Sync: merge r215464 through r215708 from ^/head.
|
#
467fdf32 |
| 20-Nov-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Remove the check that alpha/name/in_name chars are not CTL* bytes.
Since is_alpha/is_name/is_in_name were made ASCII-only, this can no longer happen.
Additionally, the check was wrong because i
sh: Remove the check that alpha/name/in_name chars are not CTL* bytes.
Since is_alpha/is_name/is_in_name were made ASCII-only, this can no longer happen.
Additionally, the check was wrong because it did not include the new CTLQUOTEEND.
show more ...
|
#
b9f2f8c3 |
| 01-Nov-2010 |
Dimitry Andric <dim@FreeBSD.org> |
Sync: merge r214353 through r214648 from ^/head.
|
#
048f2667 |
| 29-Oct-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Do IFS splitting on word in ${v+word} and ${v-word}.
The code is inspired by NetBSD sh somewhat, but different because we preserve the old Almquist/Bourne/Korn ability to have an unquoted part i
sh: Do IFS splitting on word in ${v+word} and ${v-word}.
The code is inspired by NetBSD sh somewhat, but different because we preserve the old Almquist/Bourne/Korn ability to have an unquoted part in a quoted ${v+word}. For example, "${v-"*"}" expands to $v as a single field if v is set, but generates filenames otherwise.
Note that this is the only place where we split text literally from the script (the similar ${v=word} assigns to v and then expands $v). The parser must now add additional markers to allow the expansion code to know whether arbitrary characters in substitutions are quoted.
Example: for i in ${$+a b c}; do echo $i; done
Exp-run done by: pav (with some other sh(1) changes)
show more ...
|
#
51297f7d |
| 25-Oct-2010 |
Dimitry Andric <dim@FreeBSD.org> |
Sync: merge r214221 through r214352 from ^/head.
|
#
d94c8673 |
| 25-Oct-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Ignore double-quotes in arithmetic rather than treating them as quotes.
This provides similar behaviour, but allows a simpler parser.
This changes r206473.
Exp-run done by: pav (with some othe
sh: Ignore double-quotes in arithmetic rather than treating them as quotes.
This provides similar behaviour, but allows a simpler parser.
This changes r206473.
Exp-run done by: pav (with some other sh(1) changes)
show more ...
|
#
fe5d61a4 |
| 04-Sep-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Do not use locale for determining if something is a name.
This makes it impossible to use locale-specific characters in variable names.
Names containing locale-specific characters make scripts
sh: Do not use locale for determining if something is a name.
This makes it impossible to use locale-specific characters in variable names.
Names containing locale-specific characters make scripts only work with the correct locale setting. Also, they did not even work in many practical cases because multibyte character sets such as utf-8 are not supported.
This also avoids weirdness if LC_CTYPE is changed in the middle of a script.
show more ...
|
#
40969e73 |
| 08-Aug-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
Remove unnecessary duplicate letters in mksyntax.c, the table elements would just be overwritten twice.
|
Revision tags: release/8.1.0_cvs, release/8.1.0 |
|
#
a4bf5fb9 |
| 28-Apr-2010 |
Kirk McKusick <mckusick@FreeBSD.org> |
Update to current version of head.
|
#
7f728c60 |
| 11-Apr-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Partially revert r206146, allowing double-quotes in arithmetic.
These do pretty much nothing (except that parentheses are ignored), but people seem to use them and allowing them does not hurt mu
sh: Partially revert r206146, allowing double-quotes in arithmetic.
These do pretty much nothing (except that parentheses are ignored), but people seem to use them and allowing them does not hurt much.
Single-quotes seem not to be used and cause silently different behaviour with ksh93 character constants.
show more ...
|
#
e79985ff |
| 03-Apr-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Remove special handling for ' and " in arithmetic. They will be treated like normal characters, resulting in a runtime arithmetic expression error.
Exp-run done by: erwin (with some other sh(1)
sh: Remove special handling for ' and " in arithmetic. They will be treated like normal characters, resulting in a runtime arithmetic expression error.
Exp-run done by: erwin (with some other sh(1) changes)
show more ...
|
Revision tags: release/7.3.0_cvs, release/7.3.0 |
|
#
1a0fda2b |
| 04-Mar-2010 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
IFH@204581
|
#
9199c09a |
| 06-Jan-2010 |
Warner Losh <imp@FreeBSD.org> |
Merge from head at r201628.
# This hasn't been tested, and there are at least three bad commits # that need to be backed out before the branch will be stable again.
|
#
384aedab |
| 27-Dec-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Various warning fixes (from WARNS=6 NO_WERROR=1): - const - initializations to silence -Wuninitialized (it was safe anyway) - remove nested extern declarations - rename "index" locals to "idx"
|
Revision tags: release/8.0.0_cvs, release/8.0.0 |
|
#
10b3b545 |
| 17-Sep-2009 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Merge from head
|
#
7e857dd1 |
| 12-Jun-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
#
f001f896 |
| 01-Jun-2009 |
Ralf S. Engelschall <rse@FreeBSD.org> |
use explicit 'unsigned int' instead of just the implicit-style 'unsigned' to make linting tools (e.g. FlexeLint) happy, too
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0 |
|
#
2912059a |
| 18-Feb-2008 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Fix "warning: comparison is always false due to limited range of data type" on platforms with unsigned chars. The comparison in question is there to determine whether chars are unsigned or not and is
Fix "warning: comparison is always false due to limited range of data type" on platforms with unsigned chars. The comparison in question is there to determine whether chars are unsigned or not and is based on comparing a char, initialized to -1, for less than 0. Change the comparison to check for geater than 0 instead...
show more ...
|
Revision tags: release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
#
716b138b |
| 13-Aug-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Put the comparison with PEOF into a new macro is_eof(). Don't use it if the character comes from a string.
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0 |
|
#
6195fb41 |
| 06-Apr-2004 |
Mark Murray <markm@FreeBSD.org> |
Remove clause 3 from the UCB licenses.
OK'ed by: imp, core
|
Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0 |
|
#
09a80d48 |
| 01-May-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Quiet warnings about copyright[].
|
Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
54beeb39 |
| 02-Oct-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Use %d in a printf() format string and cast the argument to int instead of using %td when we know that the number is between 0 and 9; mksyntax is a build tool and needs to work on -stable.
|
#
ec65e997 |
| 01-Oct-2002 |
Maxime Henrion <mux@FreeBSD.org> |
Use the %t format modifier to print differences between pointers. This fixes two format warnings on 64 bits archs which are fatal now that WFORMAT=0 has been removed.
It doesn't fully fix the sh(1)
Use the %t format modifier to print differences between pointers. This fixes two format warnings on 64 bits archs which are fatal now that WFORMAT=0 has been removed.
It doesn't fully fix the sh(1) build on 64 bits platforms though, there is still some quad_t issues that need to be fixed.
Tested on: i386, sparc64
show more ...
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
2749b141 |
| 30-Jun-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Consistently use FBSDID
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
5134c3f7 |
| 02-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int arg
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ...
show more ...
|