- _screen(): when dealing with -s, /etc/shells can have comment lines in it

This commit is contained in:
ianmacd 2002-03-24 19:05:07 +00:00
parent ac0060af70
commit e7d9e8471f

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.215 2002/03/24 19:57:37 ianmacd Exp $
# $Id: bash_completion,v 1.216 2002/03/24 20:05:07 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1937,7 +1937,7 @@ _screen()
;;
-s)
# shells
COMPREPLY=( $( grep ^$cur /etc/shells ) )
COMPREPLY=( $( grep ^${cur:-[^#]} /etc/shells ) )
;;
*)
;;