Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active January 25, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericboehs/b76b7f20e72735337040041d694f239d to your computer and use it in GitHub Desktop.
Save ericboehs/b76b7f20e72735337040041d694f239d to your computer and use it in GitHub Desktop.
weechat with curl doesn't work demo
# Install working version
brew uninstall weechat; brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4bdc1ce82824246dfa49d002033e1d6b2fcabe81/Formula/weechat.rb --with-python@2 --with-perl --with-ruby --with-lua --with-aspell
# Download perl script via weechat (make sure you type /quit in weechat to continue)
rm ~/.weechat/perl/multiline.pl ~/.weechat/perl/autoload/multiline.pl 2> /dev/null; weechat -r "/script install multiline.pl"; ls ~/.weechat/perl/multiline.pl 2>&1 > /dev/null && echo "It worked" || echo "It failed"
# Install broken version
brew uninstall weechat; brew install weechat
# Download perl script via weechat (make sure you type /quit in weechat to continue)
rm ~/.weechat/perl/multiline.pl ~/.weechat/perl/autoload/multiline.pl 2> /dev/null; weechat -r "/script install multiline.pl"; ls ~/.weechat/perl/multiline.pl 2>&1 > /dev/null && echo "It worked" || echo "It failed"
# If you ran line 5 and it said "It worked" and line 11 said "It failed", then you have reproduced the issue.
@ericboehs
Copy link
Author

Note: You can pick any of the scripts from /script and this will fail. I just picked multiline because it was the one I was trying to install when I encountered the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment