Skip to content

Fix file section marker semantics#83

Merged
codeforester merged 1 commit into
mainfrom
bug/76-20260624-file-section-semantics
Jun 25, 2026
Merged

Fix file section marker semantics#83
codeforester merged 1 commit into
mainfrom
bug/76-20260624-file-section-semantics

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Count managed-section markers only when they match whole lines.
  • Make update_file_section -r remove only the first matching section, matching update behavior.
  • Document the exact-line and first-match behavior.

Validation

  • shellcheck --severity=error lib/bash/file/lib_file.sh lib/bash/file/tests/lib_file.bats
  • bats lib/bash/file/tests/lib_file.bats
  • ./tests/validate.sh

Fixes #76
Fixes #78

@codeforester codeforester merged commit 5b7a8f0 into main Jun 25, 2026
2 checks passed
@codeforester codeforester deleted the bug/76-20260624-file-section-semantics branch June 25, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align update_file_section removal with single-section update semantics Fix exact-line marker detection in update_file_section

1 participant