В bash
manual page состоянияпроход GLOBIGNORE к Баш вызова
If the shell is started with the effective user (group) id not equal to
the real user (group) id, [...] the SHELLOPTS, BASHOPTS, CDPATH, and
GLOBIGNORE variables if they appear in the environment, are ignored
Так обычно это происходит.
> export GLOBIGNORE='*t*'
> echo *
afile
> bash -i
>> # look, the variable is passed through
>> $ echo $GLOBIGNORE
*t*
>> # but to no effect
>> $ echo *
afile anotherfile athirdfile
Я не думаю, что было бы смысла фальсифицировать реальный идентификатор пользователя, чтобы позволить прохождение GLOBIGNORE
и ряд других нежелательных побочных эффектов.
Возможно ли сделать подоболочку уважаемой экспортируемой GLOBIGNORE
?