On 12/2/25 5:46 PM, Zachary Santer wrote:
Bash scripts don't accept IFS exported from the environment. It's
always initially set to $' \t\n'.
POSIX requires this.
Scripts could similarly not accept
some other variables with special meaning to the shell from the
environment, instead leaving them unset regardless of the environment.
Users count on being able to specify variables in the environment. The
only special cases besides IFS are for privileged mode.
CDPATH and TMOUT seem like strong candidates for this treatment.
You can go a long way down this rabbit hole. PATH, BASH_LOADABLES_PATH,
EXECIGNORE, etc.
--
``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/