Bug 9148 - Проблемы с bash вызваным как /bin/sh
Summary: Проблемы с bash вызваным как /bin/sh
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: bash-completion (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: ildar
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 9273 15068
Blocks:
  Show dependency tree
 
Reported: 2006-02-24 16:38 MSK by drF_ckoff
Modified: 2008-03-27 20:40 MSK (History)
3 users (show)

See Also:


Attachments
патч проверки вызванного шелла (910 bytes, patch)
2006-06-01 16:04 MSD, Vadim Gusev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description drF_ckoff 2006-02-24 16:38:01 MSK
[root@nb ~]# su -l -s /bin/sh dfo
-sh: shopt: progcomp: invalid shell option name
-sh: complete: command not found
...

Проблема вылезает на /etc/cron.*/makewhatis, например.
Comment 1 Vadim Gusev 2006-06-01 16:04:17 MSD
Created attachment 1510 [details]
патч проверки вызванного шелла
Comment 2 Vadim Gusev 2006-06-01 16:04:55 MSD
Надоело уже вычищать логи. 
Comment 3 Alex Murygin 2006-07-14 14:56:17 MSD
bash-completion-20060301-alt03 with bugfix uploaded
Comment 4 Vadim Gusev 2006-07-14 19:32:44 MSD
bash-completion.sh не изменялся, так что все равно не работает. 
Comment 5 Alex Murygin 2006-07-14 19:40:41 MSD
Он просто еще в инкаминге
Comment 6 Vadim Gusev 2006-07-24 11:38:47 MSD
Патчик не идеален, но ошибка fixed. 
Comment 7 Ivan Zakharyaschev 2008-02-22 01:17:05 MSK
bash-3.1.17-alt4
sh-3.1.17-alt4
bash-completion-20060301-alt04

$ sh --login
sh: shopt: progcomp: invalid shell option name
sh: complete: command not found
< many times >
sh: complete: command not found
sh: shopt: hostcomplete: invalid shell option name
sh: complete: command not found
sh: shopt: hostcomplete: invalid shell option name
sh: complete: command not found
< many times >
sh: complete: command not found
sh-3.1$ 
Comment 8 Ivan Zakharyaschev 2008-02-22 01:24:03 MSK
If it is moved to /etc/bashrc.d/ (#9273), this problem will be solved. (`sh
--login' doesn't read /etc/bashrc.d/.)
Comment 9 Alex Murygin 2008-02-22 17:40:36 MSK
Залито исправленное
Comment 10 Ivan Zakharyaschev 2008-03-25 20:17:09 MSK
Спасибо! С bash-completion-20060301-alt05 лучше. (А то, что происходит вот так,
так это из-за /etc/profile.d/gvfs-bash-completion.sh из gvfs-0.2.0.1-alt2,
наверное -- https://bugzilla.altlinux.org/show_bug.cgi?id=15068 :

$ sh --login
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh-3.1$ 

.)