Bug 9148

Summary: Проблемы с bash вызваным как /bin/sh
Product: Sisyphus Reporter: drF_ckoff <dfo>
Component: bash-completionAssignee: ildar <ildar>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: ildar, kopilo4ka, vvk
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on: 9273, 15068    
Bug Blocks:    
Attachments:
Description Flags
патч проверки вызванного шелла none

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$ 

.)