Les bash
manual page étatspasse GLOBIGNORE à une invocation bash
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
Donc, normalement, cela se produit.
> export GLOBIGNORE='*t*'
> echo *
afile
> bash -i
>> # look, the variable is passed through
>> $ echo $GLOBIGNORE
*t*
>> # but to no effect
>> $ echo *
afile anotherfile athirdfile
Je ne pense pas qu'il serait très logique de faux le vrai nom d'utilisateur pour permettre le passage GLOBIGNORE
et un certain nombre d'autres effets secondaires indésirables.
Est-il possibile de faire en sorte que le sous-shell respecte une exportation GLOBIGNORE
?