commit 86574164df810ecbd53ae841c15b38e5b06dc068 Author: Ville Skyttä Date: Tue Apr 14 00:46:12 2009 +0300 Always use /etc/shells for chsh -s completion, don't complete on comment lines in it. Invoking chsh -l does unwanted things on some systems, such as FreeBSD. diff --git a/bash_completion b/bash_completion index e50da69..6f84e31 100644 --- a/bash_completion +++ b/bash_completion @@ -2569,13 +2569,10 @@ _chsh() prev=${COMP_WORDS[COMP_CWORD-1]} if [ "$prev" = "-s" ]; then - if [ -f /etc/debian_version ]; then - COMPREPLY=( $( /dev/null )' -- $cur ) ) else - COMPREPLY=( $( compgen -u -- $cur ) ) + COMPREPLY=( $( compgen -u -- $cur ) ) fi return 0