| #
4e69294c |
| 06-Apr-1999 |
he <he@NetBSD.org> |
Correct a rather obvious typo (once Tor Egge pointed it out to me) in the last change.
|
| #
28607542 |
| 26-Mar-1999 |
christos <christos@NetBSD.org> |
PR/7231: Havard Eidnes: Shell quoting/trimming problem
|
| #
96a46ed7 |
| 06-Feb-1999 |
christos <christos@NetBSD.org> |
Fix off-by-one error in the starting point to search for an arithmetic expression.
|
| #
b4c9a784 |
| 05-Feb-1999 |
christos <christos@NetBSD.org> |
PR/5577: Craig M. Chase: sh does not build with PARALLEL set. - Added YHEADER in Makefile, removed arith.h and adjusted the sources.
|
| #
1fbf0781 |
| 25-Jan-1999 |
mycroft <mycroft@NetBSD.org> |
Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field splitting and combining. (Note: Some of this are not strictly bugs, but differences between traditional Bourne shell and POSIX.)
|
| #
ee9e50ea |
| 28-Jul-1998 |
mycroft <mycroft@NetBSD.org> |
Be more retentive about use of NOTREACHED and noreturn.
|
| #
5dd823ab |
| 26-Jul-1998 |
mycroft <mycroft@NetBSD.org> |
const poisoning.
|
| #
a26bae1e |
| 29-Mar-1998 |
mrg <mrg@NetBSD.org> |
- change "extern" variables into int's - remove extern'd variables not actually referenced - don't use char as an array index
|
| #
04784d87 |
| 23-Mar-1998 |
christos <christos@NetBSD.org> |
Fix the VSTRIMRIGHT* bugs... The problem was not the string length computation, but lack of '\0' termination. Factor this segment out as common code too, while I am there.
|
| #
19e7771b |
| 10-Mar-1998 |
christos <christos@NetBSD.org> |
off by one error in ${%%}
|
| #
ce0d4f06 |
| 17-Feb-1998 |
christos <christos@NetBSD.org> |
Previous fix broke $var quoting. Try again differently :-)
|
| #
f7c8df6d |
| 05-Feb-1998 |
christos <christos@NetBSD.org> |
Fix bug introduced by EXP_RECORD, where in case there was a variable expansion involved in the `for' list, the list was recorded twice, leading to incorrect argument expansion. Introduce ifsfree() fu
Fix bug introduced by EXP_RECORD, where in case there was a variable expansion involved in the `for' list, the list was recorded twice, leading to incorrect argument expansion. Introduce ifsfree() function that free's the IFS region list, GC'ing duplicated code.
show more ...
|
| #
5a36c001 |
| 31-Jan-1998 |
christos <christos@NetBSD.org> |
PR/4851: Benjamin Lorenz: In the "for <var> in <args>" construct <args> was not marked as a region to be handled by ifsbreakup. Add EXP_RECORD to indicate that the argument string needs to be recorde
PR/4851: Benjamin Lorenz: In the "for <var> in <args>" construct <args> was not marked as a region to be handled by ifsbreakup. Add EXP_RECORD to indicate that the argument string needs to be recorded.
show more ...
|
| #
50557395 |
| 01-Dec-1997 |
christos <christos@NetBSD.org> |
Unfortunately (as I expected) the previous change broke:
sleep cmd='set `type "sleep"`; eval echo \$$#' which=`eval $cmd` echo $which
because the region did not get recorded at all,
Unfortunately (as I expected) the previous change broke:
sleep cmd='set `type "sleep"`; eval echo \$$#' which=`eval $cmd` echo $which
because the region did not get recorded at all, and it was interpreted as a single word. I modified the code to keep track when the result of a backquote expansion has been recorded to avoid recording it twice. I still feel that this is not the right fix... More to come.
show more ...
|
| #
b7e4df77 |
| 30-Nov-1997 |
christos <christos@NetBSD.org> |
PR/4547: Joern Clausen: Incorrect argument expansion in backquote variable assignment. E.g. echo ${foo:=`echo 1 2 3 4`} prints: 1 2 3 1 2 3 4 because when the arquments are not quoted, the backquot
PR/4547: Joern Clausen: Incorrect argument expansion in backquote variable assignment. E.g. echo ${foo:=`echo 1 2 3 4`} prints: 1 2 3 1 2 3 4 because when the arquments are not quoted, the backquote result gets recorded twice. The fix right now is to comment out the record_region() call in expbackq(). I hope that it does not break anything else.
show more ...
|
| #
64eb899e |
| 07-Jul-1997 |
phil <phil@NetBSD.org> |
Make code agree with man page in processing expansion of "$*". Fix from PR 2647.
|
| #
cd799663 |
| 04-Jul-1997 |
christos <christos@NetBSD.org> |
Fix compiler warnings.
|
| #
a0fa692d |
| 18-Mar-1997 |
christos <christos@NetBSD.org> |
PR/3352: From Hiroyuki Ito: ${#1} was not being expanded properly if there was a need to allocated another stack block.
|
| #
4a521d35 |
| 03-Mar-1997 |
christos <christos@NetBSD.org> |
varisset fixes: - treat $0 specially since it is not in shellparams - check the number of parameters instead of walking the parameters array to avoid checking against the null terminated elem
varisset fixes: - treat $0 specially since it is not in shellparams - check the number of parameters instead of walking the parameters array to avoid checking against the null terminated element.
show more ...
|
| #
edc5dadb |
| 01-Mar-1997 |
christos <christos@NetBSD.org> |
PR/3269: Off by one in varisset(), caused variable substitution not to count the last positional parameter as set.
|
| #
633ceb6d |
| 24-Jan-1997 |
christos <christos@NetBSD.org> |
- varisset(): In positional arguments, take into account VSNUL so that: set -- ""; echo ${1:-wwww} works. - when expanding arithmetic, discard previous ifs recorded regions, since we are doing ou
- varisset(): In positional arguments, take into account VSNUL so that: set -- ""; echo ${1:-wwww} works. - when expanding arithmetic, discard previous ifs recorded regions, since we are doing our own scanning. x=ab; echo $((${#x}+1)) now works. - in ${var#word} fix two bugs: * if there was an exact match, there was an off-by-one bug in the comparison of the words. x=abcd; echo ${x#abcd} * if there was no match, the stack region was not adjusted and the rest of the word was getting written in the wrong place. x=123; echo ${x#abc}X
show more ...
|
| #
48250187 |
| 11-Jan-1997 |
tls <tls@NetBSD.org> |
kill 'register'
|
| #
a4ad4c0e |
| 02-Nov-1996 |
christos <christos@NetBSD.org> |
A correction to the previous patch from Todd Miller.
|
| #
27e15e5b |
| 02-Nov-1996 |
christos <christos@NetBSD.org> |
echo ${1:-empty} did not do the substitution; from Todd Miller (OpenBSD)
|
| #
4b99c4d7 |
| 16-Oct-1996 |
christos <christos@NetBSD.org> |
PR/2808: Fix parsing of $n where n > 9 (from FreeBSD)
|