Le 03/12/2025 à 03:17, Oğuz écrivait :
On Wednesday, December 3, 2025, Zachary Santer <[email protected]> wrote:

Bash scripts don't accept IFS exported from the environment.


FWIW, that's a POSIX requirement.


CDPATH and TMOUT seem like strong candidates for this treatment.


So is inheriting CDPATH from the environment. Wrong tree

So for Bash it is ok to set TMOUT to 3.141592 with LC_NUMERIC=fr_FR.UTF-8 decimal_point=","

So why is it not ok to printf '%f\n' 3.141592 with LC_NUMERIC=fr_FR.UTF-8 decimal_point="," then?

This is inconsistent:

TMOUT=$(bc -l <<<'4*a(1)') bash -c 'read -rp "TMOUT=$TMOUT: "; printf "TMOUT=%f\\n" "$TMOUT"' TMOUT=3.14159265358979323844: bash: ligne 1 : printf: 3.14159265358979323844: nombre non valable
TMOUT=3,000000


--
Léa Gris

Reply via email to