[root@nb ~]# su -l -s /bin/sh dfo -sh: shopt: progcomp: invalid shell option name -sh: complete: command not found ... Проблема вылезает на /etc/cron.*/makewhatis, например.
Created attachment 1510 [details] патч проверки вызванного шелла
Надоело уже вычищать логи.
bash-completion-20060301-alt03 with bugfix uploaded
bash-completion.sh не изменялся, так что все равно не работает.
Он просто еще в инкаминге
Патчик не идеален, но ошибка fixed.
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$
If it is moved to /etc/bashrc.d/ (#9273), this problem will be solved. (`sh --login' doesn't read /etc/bashrc.d/.)
Залито исправленное
Спасибо! С 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$ .)