Skip to content

Commit

Permalink
Incompatibilities between BSD sed and GNU sed
Browse files Browse the repository at this point in the history
Whereas GNU sed's -i/--in-place option optionally takes an argument
(which is a suffix, and means to modify the input file in place if
you omit an argument), BSD sed's -i option always takes an argument
even if it's an empty string (e.g., -i '').

My solution is install GNU sed using Homebrew on macOS build.

Note that omitting --with-default-names will prepend "g" to the
command, i.e., gsed.

[changelog skip]
  • Loading branch information
dahlia committed Mar 10, 2018
1 parent 8f06108 commit 225b182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ before_install:
brew update || true
brew upgrade || true
brew update || true
brew install --with-default-names gnu-sed
brew tap dahlia/homebrew-deadsnakes
brew install python34 python35 python3 || \
brew upgrade python34 python35 python3 || \
Expand Down

0 comments on commit 225b182

Please sign in to comment.