CVS commit: src/bin/sh

"Robert Elz" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	kre
Date:		Thu Mar 26 01:39:32 UTC 2026

Modified Files:
	src/bin/sh: expand.c

Log Message:
Fix an off by one land mine in PR 60099 fix

While here, fix another, identical land mine, that
has been buried in the absolute wilderness for years.
Someone would have stepped on it one day.

Also fix a field splitting bug handling : or = in
IFS when generated from ${var-string1:string2} type
expansions.   This one is even older.

Clean up some dead code that didn't get removed with
the initial 60099 fixes, but probably should have been.

DEBUG mode improvements (the last couple of days have
really needed the DEBUG code).


To generate a diff of this commit:
cvs rdiff -u -r1.148 -r1.149 src/bin/sh/expand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.