Re: Surprising behavior with inline environment variable expansion
From:
Andreas Schwab
Subject:
Re: Surprising behavior with inline environment variable expansion
Date:
Wed, 26 Mar 2025 12:19:48 +0100
User-agent:
Gnus/5.13 (Gnus v5.13)
On Mär 26 2025, Léa Gris wrote:
> Even though LC_NUMERIC=C is used to correctly parse 3.141592654, the
> expansion of $LC_NUMERIC still prints its original value (fr_FR.UTF-8).
That is expected. The reference to LC_NUMERIC is expanded before the
command execution is started (which includes putting LC_NUMERIC=C in the
temporary environment for the command).
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."