CVS commit: src/tests/bin/sh
"Robert Elz" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: kre Date: Fri Mar 27 19:02:46 UTC 2026 Modified Files: src/tests/bin/sh: t_expand.sh Log Message: Add a new land_mine test case This new test case is intended to attempt to find buried shell expansion code bugs, that don't often affect normal scripts, (including most of the normal ATF tests) but can cause problems with very odd ones. It would have detected the bug introduced last Monday which blew up the gettext libtool usage (because of clearly unintentional libtool script code), which was fixed on Thursday. It also would have detected a similar one, which was never detected in the wild, which was installed in 2019, and also fixed on Thursday. Whether it can detect other similar problems in other cases is unknown - probably not, until they are understood... More sub-tests here for more bizarre cases might help, or might not. The sh in HEAD (since Thursday) passes this test as it is now. While here, adjust one case that our shell allows, but others do not .. $(( 1 << 63 )) is not guaranteed to work, as that's setting the sign bit, which is unsafe. Use a different method to calculate the biggest possible positive 64 bit number. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/tests/bin/sh/t_expand.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.