Kyle Lippincott <spectral@xxxxxxxxxx> writes: > Is there an example of a shell on Linux that has this behavior that I > can observe, and/or reproduction steps? Every once in a while this comes up and we fix, e.g. https://lore.kernel.org/git/528CE716.8060307@xxxxxxxxxxxxxxxxxxx/ https://lore.kernel.org/git/c6efda03848abc00cf8bf8d84fc34ef0d652b64c.1264151435.git.mhagger@xxxxxxxxxxxx/ https://lore.kernel.org/git/Koa4iojOlOQ_YENPwWXKt7G8Aa1x6UaBnFFtliKdZmpcrrqOBhY7NQ@xxxxxxxxxxxxxxxxxxxxxx/ https://lore.kernel.org/git/20180713055205.32351-2-sunshine@xxxxxxxxxxxxxx/ https://lore.kernel.org/git/574E27A4.6040804@xxxxxxxxxxxxxxxxxxxx/ which is from a query https://lore.kernel.org/git/?q=one-shot+export+shell+function but unfortunately we do not document which exact shell the observed breakage happened with. The closest article I found that is suitable as a discussion reignitor talks about what POSIX requires, which may be more relevant: https://lore.kernel.org/git/4B5027B8.2090507@xxxxxxxxxxxxx/