ba646ecd6f
snprintf(3) doesn't set errno in the tested cases. - If the same argument reference (for example %1) was specified more than once, the command didn't necessarily fit to the final command buffer. Fix this using a dynamic sbuf buffer. Add a few regression tests for the case. PR: bin/95079 No objections: freebsd-hackers
11 lines
177 B
Bash
11 lines
177 B
Bash
# $FreeBSD$
|
|
|
|
echo 1..2
|
|
|
|
REGRESSION_START($1)
|
|
|
|
REGRESSION_TEST(`00', `apply "echo %1 %1 %1 %1" $(cat regress.00.in)')
|
|
REGRESSION_TEST(`01', `sh regress.01.sh')
|
|
|
|
REGRESSION_END()
|