Bug 36760 - Ошибка при запуске /bin/sh под рутом
Summary: Ошибка при запуске /bin/sh под рутом
Status: CLOSED FIXED
Alias: None
Product: Branch p8
Classification: Distributions
Component: bash-completion (show other bugs)
Version: не указана
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-p8@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-17 18:33 MSK by Leonid Krivoshein
Modified: 2023-02-06 17:43 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Krivoshein 2019-05-17 18:33:29 MSK
Под пользователем всё ОК.

# sh
sh: shopt: progcomp: недопустимое имя опции оболочки

При этом новая оболочка запускается. Подавление вывода в /etc/bashrc.d/bash_completion.sh решает проблему, достаточно добавить 2>/dev/null:

if shopt -q progcomp 2>/dev/null && [ -r /usr/share/bash-completion/bash_completion ]; then
Comment 1 Repository Robot 2023-02-06 17:43:06 MSK
bash-completion-1:2.11-alt3.git.157.g59d2322e -> sisyphus:

 Mon Feb 06 2023 Alexey Shabalin <shaba@altlinux> 1:2.11-alt3.git.157.g59d2322e
 - added use of bash-completion scripts extensions (liannnix@)
 - disable show error for root sh (ALT #36760)