bayardev / git-plus-plus

do repetitive git tasks automatically
MIT License
0 stars 0 forks source link

sed: illegal option -- r #3

Open massipasquesi opened 6 years ago

massipasquesi commented 6 years ago

Problem :

# git++ help
Available commands:
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
  help          
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
  list          
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
  version       
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
  hello         

Solution on OSX with brew: brew install gnu-sed --default-names

If still not working remove default sed binarie in /bon/sed and make a symlink : sudo ln -s /usr/local/bin/gnu-sed /bin/sed