- _screen(): when dealing with -s, /etc/shells can have comment lines in it
This commit is contained in:
parent
ac0060af70
commit
e7d9e8471f
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# 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>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1937,7 +1937,7 @@ _screen()
|
|||||||
;;
|
;;
|
||||||
-s)
|
-s)
|
||||||
# shells
|
# shells
|
||||||
COMPREPLY=( $( grep ^$cur /etc/shells ) )
|
COMPREPLY=( $( grep ^${cur:-[^#]} /etc/shells ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user