########################################################################################## HLS-33: Brew no longer supports --with-default-names ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Fixed (2019-03-29 13:09:12) Project: HLS Stream Creator (HLS) Reported By: btasker Assigned To: btasker Affected Versions: - 1.0 Targeted for fix in version: - 1.0 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== It looks like brew has removed support for the --with-default-names argument. So when trying to install GNU sed Mac users will get -- BEGIN SNIPPET -- Error: invalid option: --with-default-names -- END SNIPPET -- There are a bunch of commits from January like this one - https://github.com/Homebrew/homebrew-core/commit/43f2e19d93f04eddf24ec19187b3648f594b80e2 Can see that they've removed support for the option, and now print a caveat on install instructing the user to edit bashrc if they want the programs to run from their original names (i.e. sed instead of gsed). I'm not sure that's particularly an improvement in user experience, but it is what it is. Need to update the README to detail the new process. Did toy with the idea of including a test in the script to see if gsed exists (and use that if it does), but I don't really like the idea of having hacks in there for the sake of one (albeit popular) OS. In Github #30 (where this was identified), user has provided the output from running `brew install grep` -- BEGIN SNIPPET -- brew install grep ==> Downloading https://homebrew.bintray.com/bottles/grep-3.3.mojave.bottle.2.tar.gz ######################################################################## 100.0% ==> Pouring grep-3.3.mojave.bottle.2.tar.gz ==> Caveats All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="/usr/local/opt/grep/libexec/gnubin:$PATH" -- END SNIPPET -- That path can differ depending on flags passed in, but that should be the default. Also need to find out whether this post (https://scriptingosx.com/2017/04/about-bash_profile-and-bashrc-on-macos/) about Macs being a bit stupid when it comes to bashrc and bash_profile is still accurate. ----------------------------------------------------------------------------------------- Issue Relations ================ - Github #30 (https://github.com/bentasker/HLS-Stream-Creator/issues/30) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2019-03-26 17:21:21 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: HLS-Stream-Creator Commit: 5807524b54017b429e77a357c757576d283baff5 Author: B Tasker