Bug 215040

Summary: devel/gflags: gflags_completions.sh kills bash if bash-completion is used
Product: Ports & Packages Reporter: Ting-Wei Lan <lantw44>
Component: Individual Port(s)Assignee: Sunpoet Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (sunpoet)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ting-Wei Lan 2016-12-04 10:14:03 UTC
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>
Comment 1 commit-hook freebsd_committer 2016-12-05 13:40:18 UTC
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
Comment 2 Sunpoet Po-Chuan Hsieh freebsd_committer 2016-12-05 13:55:06 UTC
Committed. Thanks!