bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Surprising behavior with inline environment variable expansion


From: Chet Ramey
Subject: Re: Surprising behavior with inline environment variable expansion
Date: Wed, 26 Mar 2025 16:04:11 -0400
User-agent: Mozilla Thunderbird

On 3/26/25 7:54 AM, Andreas Kähäri wrote:

On my Alpine system (bash 5.3.37), LC_NUMERIC is unset, and setting
LC_ALL does not automagically set LC_NUMERIC in "bash -c":

        % LC_ALL=C bash -c 'echo "$LC_NUMERIC"'
        (blank line output)

        % LANG=C bash -c 'echo "$LC_NUMERIC"'
        (blank line output)

It's not supposed to; that would be undesirable behavior.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]