From: Junio C Hamano Date: Mon, 22 Jul 2024 18:10:52 GMT Subject: Re: [PATCH 3/4] check-non-portable-shell: improve `VAR=val shell-func` detection Message-ID: In-Reply-To: Kyle Lippincott 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@ramsay1.demon.co.uk/ https://lore.kernel.org/git/c6efda03848abc00cf8bf8d84fc34ef0d652b64c.1264151435.git.mhagger@alum.mit.edu/ https://lore.kernel.org/git/Koa4iojOlOQ_YENPwWXKt7G8Aa1x6UaBnFFtliKdZmpcrrqOBhY7NQ@cipher.nrlssc.navy.mil/ https://lore.kernel.org/git/20180713055205.32351-2-sunshine@sunshineco.com/ https://lore.kernel.org/git/574E27A4.6040804@ramsayjones.plus.com/ 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@viscovery.net/