Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Use BSD-compatible in-place editing for sed. #6887

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

clokep
Copy link
Member

@clokep clokep commented Feb 11, 2020

In the linting scripts the use of sed is not compatible with BSD's sed (which is what macOS uses unless a different version is installed).

This StackOverflow has a good explanation of the differences.

Without this change I end up with a docs/sample_config.yaml-E file in my directory each time I run the linting script.

I have not tested this with GNU sed, but I'm fairly certain it will work! You can check which version you have via the man pages (man sed). (Weirdly my version doesn't seem to have a --version flag...)

@clokep clokep requested a review from a team February 11, 2020 12:42
@clokep clokep force-pushed the clokep/lint-sed-bsd branch from 3a5b4f2 to e9daed8 Compare February 11, 2020 12:44
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm!

@clokep clokep merged commit ba547ec into develop Feb 12, 2020
@clokep clokep deleted the clokep/lint-sed-bsd branch February 12, 2020 12:02
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'ba547ec3a':
  Use BSD-compatible in-place editing for sed. (#6887)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants