Freddy Vulto 61b9ec0373 Fixed unset $ODBCINI bug in _isql()
Fix _isql completion waiting for grep input if $ODBCINI not set; handle
whitespace in $ODBCINI.
2009-02-25 21:26:00 +01:00

14 lines
322 B
Bash

# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
# ex: ts=8 sw=8 noet filetype=sh
#
# isql completion by Victor Bogado da Silva Lins <victor@bogado.net>
_isql()
{
local cur
cur=`_get_cword`
[ -f "$ODBCINI" ] && COMPREPLY=( $( grep \\[$cur "$ODBCINI" | tr -d \\[\\] ) )
}
complete -F _isql isql