Bug 13041 - bash-completion annoys zsh
: bash-completion annoys zsh
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/bash-completion)
: unstable
: all Linux
: P2 minor
Assigned To:
:
:
:
: 9273 14641 15068
:
  Show dependency tree
 
Reported: 2007-10-05 16:41 by
Modified: 2009-05-10 09:33 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-10-05 16:41:30
[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 From 2007-10-17 20:33:37 -------
alt04 в инкоминге
------- Comment #2 From 2007-10-18 18:54:08 -------
Спасибо :)
------- Comment #3 From 2008-02-22 01:09:44 -------
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 From 2008-02-22 03:29:53 -------
(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 From 2008-02-22 17:41:12 -------
Залито исправленное