Skip to content

Conversation

@tamuratak
Copy link
Contributor

include uppercase -I in sed in-place option detection

The -I option is available for sed on macOS and BSDs.

Although There is no official macOS manual available online, you can check by executing man sed on macOS.

ProductName: macOS
ProductVersion: 15.7.3
BuildVersion: 24G419

CC: @Tyriar

Copilot AI review requested due to automatic review settings December 21, 2025 03:44
@tamuratak tamuratak closed this Dec 21, 2025
@tamuratak tamuratak reopened this Dec 21, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the uppercase -I option in sed in-place option detection, which is available on macOS and BSD systems. The change ensures that commands using sed -I are properly detected as requiring file modification operations.

Key changes:

  • Updated documentation comment to include -I as an in-place editing option
  • Modified regex pattern to detect the uppercase -I flag alongside the existing lowercase -i flag

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a bunch!

@Tyriar Tyriar added this to the December / January 2026 milestone Dec 21, 2025
@Tyriar Tyriar enabled auto-merge December 21, 2025 11:55
@Tyriar Tyriar merged commit dead67f into microsoft:main Dec 21, 2025
17 checks passed
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.

3 participants