Bug 13041

Summary: bash-completion annoys zsh
Product: Sisyphus Reporter: Michael Shigorin <mike>
Component: bash-completionAssignee: ildar <ildar>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P2 CC: ildar, led
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on: 9273, 14641, 15068    
Bug Blocks:    

Description Michael Shigorin 2007-10-05 16:41:30 MSD
[root@localhost ~]# zsh
/etc/profile.d/bash-completion.sh:[:4: unrecognized condition: `2'

-if [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] || [ $bmajor -gt 2 ]; then   #
interactive shell
+if [ "$bmajor" -eq 2 ] && [ "$bminor" -gt 04 ] || [ "$bmajor" -gt 2 ]; then #
interactive shell

(-gt is prettyprinting, the problem was with missing quotes around the variable
substitution)
Comment 1 Alex Murygin 2007-10-17 20:33:37 MSD
alt04 в инкоминге
Comment 2 Michael Shigorin 2007-10-18 18:54:08 MSD
Спасибо :)
Comment 3 Ivan Zakharyaschev 2008-02-22 01:09:44 MSK
When it will be moved to /etc/bashrc.d/
(https://bugzilla.altlinux.org/show_bug.cgi?id=9273 ), there will be no more
need to test that it is bash, not zsh.
Comment 4 Ivan Zakharyaschev 2008-02-22 03:29:53 MSK
(In reply to comment #3)
> When it will be moved to /etc/bashrc.d/
> (https://bugzilla.altlinux.org/show_bug.cgi?id=9273 ), there will be no more
> need to test that it is bash, not zsh.

Предлагаю убрать проверку того, какой это shell, как
ненужный код, т.к. содержимое /etc/bashrc.d/ предназначено только для bash.
(Во-первых, это лишнее действие. Во-вторых, лишняя сложность --
потенциальный источник ошибок, нестыковок при новых версиях пакетов.)
Comment 5 Alex Murygin 2008-02-22 17:41:12 MSK
Залито исправленное