| #
dec2ca90 |
| 08-Mar-2016 |
christos <christos@NetBSD.org> |
PR bin/50834o: fix expansions of (unquoted) ${unset_var-} and ""$@ (from kre)
|
| #
78204bbf |
| 27-Feb-2016 |
christos <christos@NetBSD.org> |
remove useless casts
|
| #
606614c8 |
| 22-Feb-2016 |
christos <christos@NetBSD.org> |
PR bin/43469 - correctly handle quoting of the pattern part of ${var%pat} type expansions. (from kre)
|
| #
19d6b839 |
| 27-Aug-2015 |
christos <christos@NetBSD.org> |
PR/50179: Timo Buhrmester: sh(1) variable expansion bug
|
| #
3eb04a36 |
| 06-Jun-2015 |
joerg <joerg@NetBSD.org> |
Use an explicit body for a "until not EINTR" loop.
|
| #
7969ec4d |
| 20-Jan-2014 |
roy <roy@NetBSD.org> |
Add wctype(3) support to Shell Patterns. Obtained from FreeBSD.
|
| #
83d9b545 |
| 06-Oct-2013 |
ast <ast@NetBSD.org> |
Fix PR bin/48202 [non-critical/low]: sh +nounset and `for X; do` iteration fails if parameter set empty by applying and testing FreeBSD's patch of Oct 24 2009 for this; see http://svnweb.freebsd.
Fix PR bin/48202 [non-critical/low]: sh +nounset and `for X; do` iteration fails if parameter set empty by applying and testing FreeBSD's patch of Oct 24 2009 for this; see http://svnweb.freebsd.org/base/head/bin/sh/expand.c?r1=198453&r2=198454 Also created an ATF test in tests/bin/sh/t_expand.sh for this error and corrected a space->tabs problem there as well.
show more ...
|
| #
018a6f78 |
| 02-Oct-2013 |
christos <christos@NetBSD.org> |
add crude $LINENO support for FreeBSD
|
| #
7d60739a |
| 22-Dec-2012 |
dsl <dsl@NetBSD.org> |
Fix the expansion of "$(foo-$bar}" so that IFS isn't applied when expanding $bar. Noted by Greg Troxel on tech-userlevel running some 'git' tests. Should fix PR bin/47361
|
| #
a080d612 |
| 28-Mar-2012 |
christos <christos@NetBSD.org> |
include <limits.h> for CHAR_MIN/CHAR_MAX
|
| #
9f61b804 |
| 31-Aug-2011 |
plunky <plunky@NetBSD.org> |
NULL does not need a cast
|
| #
69a4e2ee |
| 23-Aug-2011 |
christos <christos@NetBSD.org> |
PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating trailing newlines if the block has moved, arrange so that trailing newlines are never placed in the string in the first place
PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating trailing newlines if the block has moved, arrange so that trailing newlines are never placed in the string in the first place, by accumulating them and adding them only after we've encountered a non-newline character. This allows also for more efficient appending since we know how much we need beforehand. From FreeBSD.
show more ...
|
| #
4fc4fe2e |
| 18-Jun-2011 |
christos <christos@NetBSD.org> |
PR/45069: Henning Petersen: Use prototypes from builtins.h .
|
| #
49ee47d0 |
| 27-Nov-2009 |
tsutsui <tsutsui@NetBSD.org> |
Use %zu in printf format for size_t value.
|
| #
c6144e48 |
| 18-Jan-2009 |
lukem <lukem@NetBSD.org> |
fix -Wsign-compare issues
|
| #
271febeb |
| 21-Dec-2008 |
christos <christos@NetBSD.org> |
use EXP_CASE only when trimming and unquoted.
|
| #
26edf84a |
| 20-Dec-2008 |
christos <christos@NetBSD.org> |
PR/36954: Roland Illig: don't eat backlash escapes in variable patterns. Makes ${line%%\**} work.
|
| #
7fb5a8c6 |
| 16-Oct-2008 |
dholland <dholland@NetBSD.org> |
The field width passed for a %.*s printf format is supposed to be int, not ptrdiff_t; on 64-bit platforms the latter will be too wide. Adjust accordingly.
|
| #
91ce988b |
| 25-Mar-2007 |
apb <apb@NetBSD.org> |
Make /bin/sh use intmax_t (instead of int) for arithmetic in $((...)).
|
| #
5c056f67 |
| 24-Nov-2006 |
wiz <wiz@NetBSD.org> |
s/apparant/apparent/, from Zafer.
|
| #
c58b829d |
| 22-Aug-2006 |
dsl <dsl@NetBSD.org> |
Set the 'not a parameter' flag when we skip initial whitespace. Otherwise: ./sh -c 'x=" "; for a in $x; do echo a${a}a; done' is processed as a single empty parameter (instead of no parameters).
Set the 'not a parameter' flag when we skip initial whitespace. Otherwise: ./sh -c 'x=" "; for a in $x; do echo a${a}a; done' is processed as a single empty parameter (instead of no parameters). Should fix the breakage I introdiced in rev 1.75 and PR/34256 and PR/34254
show more ...
|
| #
413b7762 |
| 21-Aug-2006 |
dsl <dsl@NetBSD.org> |
Rework the code changes from revisions 1.69, 1.70 and 1.74 so that the code behaves correctly. As far as I can tell, "x$@y" now expands correctly, as does IFS=:; set -$IFS. Fixes PR/33472 (again) and
Rework the code changes from revisions 1.69, 1.70 and 1.74 so that the code behaves correctly. As far as I can tell, "x$@y" now expands correctly, as does IFS=:; set -$IFS. Fixes PR/33472 (again) and PR/33956
show more ...
|
| #
0e765f00 |
| 20-May-2006 |
dsl <dsl@NetBSD.org> |
When expanding "$@" add a \0 byte after the last argument (as well as all the earlier ones) so that a separator is added before it when it is empty. This wasn't needed before a recent change that che
When expanding "$@" add a \0 byte after the last argument (as well as all the earlier ones) so that a separator is added before it when it is empty. This wasn't needed before a recent change that chenged the behaviour of trailing whitespace IFS characters. Fixed PR/33472
show more ...
|
| #
3e359756 |
| 18-Mar-2006 |
christos <christos@NetBSD.org> |
Coverity CID 620: Remove dead code.
|
| #
ea207881 |
| 13-Dec-2005 |
dsl <dsl@NetBSD.org> |
TOG require that 'set +o' output the options in a form suitable for restoring them - make it so.
|