Bug 13041 - bash-completion annoys zsh
Summary: bash-completion annoys zsh
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: bash-completion (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: ildar
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 9273 14641 15068
Blocks:
  Show dependency tree
 
Reported: 2007-10-05 16:41 MSD by Michael Shigorin
Modified: 2009-05-10 09:33 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Залито исправленное