/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.1
test/lib/completion.exp
31 строка
968 B
Freddy Vulto
(test suite) Added global var `bash_versinfo_0'
02 окт 2009, 18:39
02 окт 2009, 18:39
9eb0ee2
Код
Авторство
О чём код?
source lib/library.exp proc completion_exit {} { # Exit bash send "\rexit\r" }; # completion_exit() proc completion_start {} { global bash_versinfo_0 TESTDIR TOOL_EXECUTABLE spawn_id set test "completion_start" set TESTDIR [pwd] # Start bash and load bash-completion # If `--tool_exec' option not specified, use "bash" if {! [info exists TOOL_EXECUTABLE]} {set TOOL_EXECUTABLE bash} exp_spawn $TOOL_EXECUTABLE --rcfile config/bashrc assert_bash_exec {} "$TOOL_EXECUTABLE --rcfile config/bashrc" assert_bash_exec {BASH_COMPLETION_DIR=$(cd ..; pwd)/contrib} assert_bash_exec {BASH_COMPLETION=$(cd ..; pwd)/bash_completion} assert_bash_exec {source $BASH_COMPLETION} # Fill global var `bash_versinfo_0' with bash major version number assert_bash_exec {printf "%s" "${BASH_VERSINFO[0]}"} "" /@ bash_versinfo_0 }; # completion_start() proc completion_version {} { puts "bash-completion-git" }