Created attachment 245277 [details] initool-0.13.0.patch Description: ChangeLog: https://github.com/dbohdan/initool/releases/tag/v0.13.0 * Added a new global option -i/--ignore-case. * Implemented wildcards. A wildcard (*) section name or key matches everything. * Repeated keys and section names are handled correctly. Commands act on every copy. exist and get ... --value-only did not work correctly for repeated items before. * get, set, delete can exit with non-zero status. The previous approach of never doing it made it easier for mistakes to go unnoticed. Sorry if this breaks your script. It was a mistake to keep the old behavior for so long. * Initool no longer prints the section name on get existing-section missing-property. It is not clear it helped users in any way. It might have been confusing, creating an impression that the section was empty when it may or may not have been. (This change only affects getting a nonexistent property. Initool gets an empty section like it did before. Deleting everything from a section does not delete the section itself, since an empty section's presence may have meaning.) * Initool no longer prints a blank line when there is nothing to output from get or delete. QA: * portlint: OK (looks fine.) * testport: OK (poudriere: 13.2-RELEASE, amd64, DOCS tested)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7883fa8a716a7d74ef9548b04eab340f42e69df9 commit 7883fa8a716a7d74ef9548b04eab340f42e69df9 Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org> AuthorDate: 2023-09-27 11:13:04 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2023-09-28 05:24:36 +0000 sysutils/initool: Update to 0.13.0 ChangeLog: https://github.com/dbohdan/initool/releases/tag/v0.13.0 * Added a new global option -i/--ignore-case. * Implemented wildcards. A wildcard (*) section name or key matches everything. * Repeated keys and section names are handled correctly. Commands act on every copy. exist and get ... --value-only did not work correctly for repeated items before. * get, set, delete can exit with non-zero status. The previous approach of never doing it made it easier for mistakes to go unnoticed. Sorry if this breaks your script. It was a mistake to keep the old behavior for so long. * Initool no longer prints the section name on get existing-section missing-property. It is not clear it helped users in any way. It might have been confusing, creating an impression that the section was empty when it may or may not have been. (This change only affects getting a nonexistent property. Initool gets an empty section like it did before. Deleting everything from a section does not delete the section itself, since an empty section's presence may have meaning.) * Initool no longer prints a blank line when there is nothing to output from get or delete. PR: 274122 sysutils/initool/Makefile | 2 +- sysutils/initool/distinfo | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)