gflags_completions.sh is not intended to be loaded into an interactive bash process. Please don't move it into ${PREFIX}/etc/bash_completion.d. It causes bash to exit when bash-completion is loaded. If users use bash as login shell and load bash-completion in ~/.bashrc or ~/.bash_login, it will cause them to fail to login. $ . /path/to/gflags_completions.sh bash: -1: bad substitution <bash process exited>
A commit references this bug: Author: sunpoet Date: Mon Dec 5 13:39:19 UTC 2016 New revision: 427882 URL: https://svnweb.freebsd.org/changeset/ports/427882 Log: - Revert r427239 - Bump PORTREVISION for package change PR: 215040 Reported by: Ting-Wei Lan <lantw44@gmail.com> Changes: head/devel/gflags/Makefile head/devel/gflags/pkg-plist
Committed. Thanks!