Skip to content

edit_file strips executable bit from existing scripts #179

Closed

Description

@justrach

When functions.edit_file modifies an existing executable file, it rewrites the file as mode 0644 instead of preserving mode 0755.

Observed in codedb on scripts/bench-ab.sh: each edit_file call changed the Git diff mode from 100755 to 100644; running chmod +x fixed it, but a later edit_file call stripped it again. The edit operation should preserve the existing file mode, especially executable bits.

Activity

  1. added a commit that references this issue on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions