Re: GLOBIGNORE
Chet Ramey <[email protected]> Mon, 4 May 2026 15:27:22 -0400
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 5/2/26 5:46 PM, Stan Marsh wrote: > BTW, maybe it is one of those things where the variable is "magic" and > the implementation is such that the magic happens as a side effect of > the variable being set. In the case where it is not explicitly set > by the current shell process (because it was inherited from the > environment), the magic doesn't happen. Kind of. GLOBIGNORE changes behavior, so the internal data structures that control that are modified when the variable is set or unset. GLOBIGNORE has been around 30+ years (I implemented it in 1995 and it first appeared in bash-2.0), and I can't recall my thought process from back then. It may be that I didn't want one process to be able to affect another like that (since GLOBIGNORE is ignored when the shell is in privileged mode) but I can't remember. What I can say is that it's never been inherited from the environment in that way. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/