prendre minimum bash4
This commit is contained in:
parent
ed2e89596c
commit
e18ee2592c
|
@ -1,14 +1,8 @@
|
||||||
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
##@before *
|
##@before *
|
||||||
|
|
||||||
if [ -z "$BASH_COMPLETION" ]; then
|
if [ -z "$BASH_COMPLETION" -a "${BASH_VERSINFO[0]}" -ge 4 ]; then
|
||||||
[ "${BASH_VERSINFO[0]}" -ge 3 -a "${BASH_VERSINFO[1]}" -ge 2 ] && __bash32=1 || __bash32=
|
source "@@dest@@/ulib/bash_completion"
|
||||||
[ "${BASH_VERSINFO[0]}" -ge 4 ] && __bash40=1 || __bash40=
|
|
||||||
if [ -n "$__bash32" -o -n "$__bash40" ]; then
|
|
||||||
source "@@dest@@/ulib/bash_completion"
|
|
||||||
fi
|
|
||||||
unset __bash32
|
|
||||||
unset __bash40
|
|
||||||
fi
|
fi
|
||||||
if [ -n "$BASH_COMPLETION" ]; then
|
if [ -n "$BASH_COMPLETION" ]; then
|
||||||
if [ -n "$BASH_COMPLETION_DIR" -a -f "$BASH_COMPLETION_DIR/ssh" ]; then
|
if [ -n "$BASH_COMPLETION_DIR" -a -f "$BASH_COMPLETION_DIR/ssh" ]; then
|
||||||
|
|
Loading…
Reference in New Issue