ftnk.jp -> ~fumi -> ChangeLog -> 2003-03 -> 2003-03-26

前の日 / 次の日 / 最新 / 2003-03

2003-03 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

2003-03-26 Wed

[別の年の同じ日: 2004 2005 2007 2008 2009 2010 2011

bash で補完 [bash][shell] はてぶ

rpm --rebuild するとき、file 名を補完しようと TAB を押しても候補に
.src.rpm しかでてこない。/etc/bash_completion を見ると、

        --re@(build|compile))
                if [[ "$cur" == -* ]]; then
                        COMPREPLY=( $( compgen -W '--nodeps --rmsource \
                                --rmspec --sign --nodirtokens' -- $cur ) )
                else
                        _filedir 'src.rpm'
                fi
                ;;
となっていたので、_filedir 'src.rpm' を _filedir '@(nosrc|src).rpm'
に書き換え。